Arbitrary abbreviations in phobos considered ridiculous

Michel Fortin michel.fortin at michelf.com
Tue Mar 6 11:13:16 PST 2012


On 2012-03-06 18:35:49 +0000, "H. S. Teoh" <hsteoh at quickfur.ath.cx> said:

> Anyway, names like Clock.currentTime() are too long, IMO. There's
> nothing wrong with shortening it. But the abbreviations need to be
> consistent, so it shouldn't be currTime in one case, and curYear in
> another case. And consistency needs to be across the board.

Before abbreviating anything, try removing the superfluous. 
"Clock.currentTime()" might be unnecessary long, but why does it need 
to belong to Clock? Isn't "currentTime()" short and precise enough by 
itself? Now you've saved six characters and one word of clutter instead 
of three while keeping the same number of words.


-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/



More information about the Digitalmars-d mailing list