Re:The GitHub Styleguide
by jeltz on Thursday April 05, 2012 @07:22PM
(#3805162)
Indeed, "and" and "or" are excellent for their intended use, for control flow. Like explained by the style guide the Github one is based on. https://github.com/bbatsov/ruby-style-guide
[ Parent
| on HN ]
Re:The GitHub Styleguide
by 286c8cb04bda on Friday April 06, 2012 @10:42AM
(#3807311)
I'm not sold on tossing "and" and "or" out the window, but wouldn't "document.saved? or document.save!" read better as "document.save! unless document.saved?"