3 ms·
I like how ruby way of declaration if a method does mutate object or not but a exclamation mark at end to tell it modifies the object a = a.sort or a.sort!
by kburman 7y ago
I like how ruby way of declaration if a method does mutate object or not but a exclamation mark at end to tell it modifies the object
a = a.sort
or
a.sort!
- jonnycomputer 7y agoI like the idea of adding an exclamation or some other mark to the individual parameters in the method declaration since a method might mutate some but not all parameters.
- mirekrusin 7y agoJulia has this pattern as well.