Arbitrary abbreviations in phobos considered ridiculous

Adam D. Ruppe destructionator at gmail.com
Tue Mar 6 11:04:49 PST 2012


On Tuesday, 6 March 2012 at 18:37:25 UTC, Nick Sabalausky wrote:
> I'm very much in favor of "curr".

If three characters make a big difference in really
anything, that's the real WTF. It is trivial to
type or to see on the line. (It might add up if
you refer to it a bunch of times, but in that case,
just use a local variable instead.)


I see this as more like "creat" and "umount" vs "create" and
"unmount" than "foo" and 
"thisIsAnExampleFunctionThatWouldNormally-
BeNamedFooButHereIWantedToGiveItAMoreDescriptiveSelfDocumenting-
NameBecauseThatsTheGoodThingToDoAmIRite".

None of the differences matter, except for the remember
difficulty; looking it up, even once, will cost more than
seeing it a thousand times.


More information about the Digitalmars-d mailing list