Arbitrary abbreviations in phobos considered ridiculous

Stewart Gordon smjg_1998 at yahoo.com
Thu Mar 8 14:36:33 PST 2012


On 08/03/2012 13:45, Jacob Carlborg wrote:
> On 2012-03-08 02:22, Stewart Gordon wrote:
<snip>
>> My utility library has, for consistency, DateValue.now, TimeValue.now
>> and DateTime.now.
>
> Cool. Why the "Value" suffix?

As far as I can remember, DateValue was named to avert confusion with the Date struct in 
Phobos.  TimeValue was named analogously.

OTOH, there wasn't anything called DateTime in Phobos at the time, and DateTimeValue was 
unnecessarily wordy, so I just stuck with DateTime.

Steawrt.


More information about the Digitalmars-d mailing list