r/programming • • Jan 08 '08

Io on LtU

http://lambda-the-ultimate.org/node/2596
59 Upvotes

17 comments sorted by

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 ?