> Ethan <[email protected]>
 > writes:
 > > Wow, thanks for explaining this! I came across this injunction a week or 
 > > two
 > > ago and couldn't make heads or tails of it. Namespacing just didn't seem to
 > > cut it -- how many people really write functions called "remove-if"? But I
 > > must say I've found dolist very nice..

Given that mapc is available, is a built-in, and is (IMHO) equally
readable, I've never had any reason to use dolist myself.  YMMV.

 > FWIW, `dolist' is in Emacs core, too. cl just silently overrides it with its
 > own definition.

Interesting.  

Though I now see that, compiled, the bare while loop dolist produces
is ever-so-slighly faster than mapc (even if interpreted mapc is about
twice as fast as interpreted while...)

Meanwhile, I see that cl's version introduces a spurious catch and an
unneeded extra variable definition.  Yay.  (At least, in this case,
the compiler can optimize it back down, but bleah.)

Reply via email to