Hi,

Am 16.10.2009 um 18:09 schrieb Jarkko Oranen:

> add-watch doesn't really affect the object itself, while set-
> validator! certainly does, so I think the naming is consistent.
> I think it might be a good rule of thumb to add the ! if the operation
> either mutates the object (set!) or invalidates old values/references
> to it, like persistent! or set-validator!. However, even core.clj
> doesn't seem to follow this...
>
> The exceptions seem to be the "alter" operations for reference types;
> alter, commute, alter-var-root, and for some reason, ref-set.

I also use ! for functions, which modify resources. Eg. creating a  
database table or such.

Sincerely
Meikel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to