3 ms·
I guess it's OK if the convention is well respected. It's the case in the jQuery library for example. But yes it's a bit terse in Ruby because the default valu
by dominicrose 1y ago
I guess it's OK if the convention is well respected. It's the case in the jQuery library for example.
But yes it's a bit terse in Ruby because the default value is the last statement so it's known and predictable only if you look at the code paths.
I would feel more confortable doing this if the IDE checks that it's OK.