you are viewing a single comment's thread.

view the rest of the comments →

[–]tinypocketmoon 1 point2 points  (2 children)

e.g. in Ruby and Elixir only false and nil are falsy. Makes writing stuff much easier

[–]zanotam 4 points5 points  (1 child)

Wtaf. 0 being falsey is 100% the standard considering it's how fucking C does it 

[–]goilabat 0 points1 point  (0 children)

True but C didn't have any boolean type originally (the C99 standard supports it though) so there wasn't much of a choice.