3 ms·
You can do it in Ruby and lots of other languages
by oscardelben 15y ago
You can do it in Ruby and lots of other languages
- TomasSedovic 15y agoRuby, Python, Go, JavaScript, Bash, even Clojure -- kinda. https://gist.github.com/1815639 https://gist.github.com/1815639 Of course, unless you're the sole writer and reader of the code, it's generally good to follow the common practices that evolved around the particular language.
- mjwalshe 15y agoJust becuse it is in the language spec does not mean that you should use it - Arithmetic IF's in Fortran are a good example.