4 ms·
it depends on how you think of functions... If you think of everything as an expression, of course it has some kind of value. That being said I prefer not to
by rawsyntax 15y ago
it depends on how you think of functions... If you think of everything as an expression, of course it has some kind of value.
That being said I prefer not to have to write "return" but work plenty with languages outside of ruby and have no issues writing return when necessary.
- technomancy 15y ago> it depends on how you think of functions... If you think of everything as an expression, of course it has some kind of value. Sure, and functions by definition return a value. I know programming isn't math, but the notion of a "void function" is somewhat of an oxymoron.