Arbitrary abbreviations in phobos considered ridiculous

Steven Schveighoffer schveiguy at yahoo.com
Fri Mar 9 14:49:03 PST 2012


On Fri, 09 Mar 2012 17:38:08 -0500, Nick Sabalausky <a at a.a> wrote:

> "Nick Sabalausky" <a at a.a> wrote in message
> news:jjdu0j$209o$1 at digitalmars.com...
>>> I can't say I agree with this, as it pollutes the global namespace with
>>> several common terms that could be used for fields.
>>>
>>
>> I'd argue that should not be considered a problem in this case:
>> http://forum.dlang.org/post/jj6hnv$2o9s$1@digitalmars.com
>>
>
> Plus, having to [**occasionally**] change a "minutes" to "numMinutes" (or
> something, frankly, much more descriptive) is a hell of a lot better than
> having to use 'dur!"minutes"(5)' instead of 'minutes(5)'.

I find both equally descriptive and neither one too offensive.  All things  
being equal, dur wins because it consumes only one top-level symbol, and  
is already there.

This is all my opinion of course, and we've already seen how much affect  
that has ;)

-Steve


More information about the Digitalmars-d mailing list