There was a previous thread [1] that involved discussion of the naming convention for methods doing "dangerous" in-place mutatation - e.g. sort/sorted, reverse/reversed - and even though I now know there is such a naming convention, its hard to keep track of which is which.

Now today I happened to be looking for the first time at some Ruby code and came across their naming convention for "dangerous" methods of having a trailing exclamation mark - e.g. sort/sort!, reverse/reverse! - which is REALLY intuitive. How extreme is it to wonder if Pharo might some day be able to support such a convention?
You know we cannot change the world in one day. So I like this convention but did you measure how much work it would mean
to follow it.

What would be good is
    to have systematically method comments
to build tools to give some hints and to slowly make sure that we follow our convention.
    analyse what is reasonable to do.

Stef



[1] http://forum.world.st/11635-Race-condition-in-SequenceableCollection-gt-gt-shuffle-td4709752.html





Reply via email to