-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Andrei Alexandrescu wrote: > There are a few other functions like that: one version takes a range by > value, the other takes it by reference and alters it. > > The question is, what is a good naming convention for expressing that? > Other examples: findConsume, consumeFind. > > > Andrei
chomp? consume is probably best; it's very clear. - -- My enormous talent is exceeded only by my outrageous laziness. http://www.ssTk.co.uk -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFLgFubT9LetA9XoXwRArf2AKDHBXyi7hHoxZFLN0yS8HZiOPiFKwCeIbpK qNmv5S4We3wdkuRDVLAXmsg= =01Ac -----END PGP SIGNATURE-----