Arbitrary abbreviations in phobos considered ridiculous

Dmitry Olshansky dmitry.olsh at gmail.com
Tue Mar 6 09:54:39 PST 2012


On 06.03.2012 21:09, Andrej Mitrovic wrote:
> I'll never forgive std.datetime for this mistake:
>
> auto sw = StopWatch(AutoStart.yes);
> writeln(sw.peek.hnsecs);
> writeln(sw.peek.nsecs);
> writeln(sw.peek.usecs);
> writeln(sw.peek.msecs);
> writeln(sw.peek.secs);  // bzzzzz NOPE
> writeln(sw.peek.seconds);
>
> I misspell this thing every single time I use stopwatch to count seconds.

Me too.
It's coming from separate stopwatch module that got merged with 
std.datetime, so the blame is somewhat misplaced :)

-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list