3 ms·
Both C and Python treat the number 0 as falsy if you use it in an if statement. On the other hand, Ruby and Clojure treat 0 as truthy if you pass it in an if s
by ufo 13y ago
Both C and Python treat the number 0 as falsy if you use it in an if statement. On the other hand, Ruby and Clojure treat 0 as truthy if you pass it in an if statement
if(0){
//Ruby and Clojure go here
}else{
//C and Python go here
}