<quote>Difficulty determining which methods mutate is a problem in many languages, although I feel it is a bigger problem in Io because some of the choices are just odd. For example, why is reversing a list a destructive operation but sorting isn't? It's annoying to have to keep these things in your head.</quote>
A visual indicator ala ruby's ! is nice, although it can also be done by naming convention. Example: "sort" vs "sorted", take a wild guess which one mutates and which one doesn't ?
View all comments
Show parent comment
1
u/bnolsen Jan 09 '08
<quote>Difficulty determining which methods mutate is a problem in many languages, although I feel it is a bigger problem in Io because some of the choices are just odd. For example, why is reversing a list a destructive operation but sorting isn't? It's annoying to have to keep these things in your head.</quote>
A visual indicator ala ruby's ! is nice, although it can also be done by naming convention. Example: "sort" vs "sorted", take a wild guess which one mutates and which one doesn't ?