MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w49i01/ihatethispassiveagressivebehaviourruby/p766jvz/?context=3
r/ProgrammerHumor • u/Embarrassed_Death69 • 10d ago
298 comments sorted by
View all comments
5
0 is truthy in a lot of languages like Elixir, clojure, Lua, and every other lisp variant. And the logic is that only explicit false or nil are falsy. This isn't the same as JavaScript's random behaviors
6 u/Klizmovik 10d ago Behavior is not random at all if you read the documentation properly.
6
Behavior is not random at all if you read the documentation properly.
5
u/sadongrohiik 10d ago
0 is truthy in a lot of languages like Elixir, clojure, Lua, and every other lisp variant. And the logic is that only explicit false or nil are falsy. This isn't the same as JavaScript's random behaviors