Hi, Am 07.03.2009 um 00:23 schrieb Laurent PETIT:
I'm not sure about this, but I think doto is named after the convention that a lot of side effecting functions/macros/special forms follow : share the "do" prefix if the name implies that there will be side effects.And indeed, if you use doto with more than one following expression, then this list of expression will generate side effects (mutating the target object, at a minimum).
I think "doto" is actually a good name. In contrast to ->, which uses the return value of the expressions doto always calls the given functions or methods using the initial thing. So it "does" the function calls "to" the thing. Together with the points Laurent mentioned about the do-prefix indicating side-effects and the slightly different notion of the with-something blocks, I think doto is just good enough a name. Just, my 2ยข and YMMV. Sincerely Meikel
smime.p7s
Description: S/MIME cryptographic signature