Follow

are there any programming languages that coerce nil to 0 when you try to do arithmetic to it?

@sol Javascript definitely coerces null to 0 when you do most arithmetic operations to it. Operations with undefined result in NaN tho.

Sign in to participate in the conversation
The Vulpine Club

The Vulpine Club is a friendly and welcoming community of foxes and their associates, friends, and fans! =^^=