[Grace-core] more comments on collections

Marco Servetto marco.servetto at gmail.com
Thu Jul 17 14:55:25 PDT 2014


On 18 July 2014 09:40, Kim Bruce <kim at cs.pomona.edu> wrote:
> nfusing that both have essentially the same type (and otherwise look very
> similar).  This requires very good comments (and the user to read them!) to
> understand when the operation is a mutates the current data structure and
> when it results in a new one.  I'm not sure what the right answer is (don't
> worry about chaining operations?), but it seems like it would be confusing,
> espe


To make clear when an operation create a new list and when it modify
the current one, you could use the following easy to remember
convention:
- symbolic operators create new lists
- alphanumeric methods modify the current one


More information about the Grace-core mailing list