On Friday, January 21, 2011 06:20:30 spir wrote: > On 01/21/2011 10:05 AM, Lars T. Kyllingstad wrote: > > These should be expanded a bit and camelCased: > > LS: lineSep, lineSeparator > > PS: paragraphSep, paragraphSeparator > > Isn't there a rule that constants all fully uppercase?
That would be typical in C++ or Java, but that's not the case in D. Phobos certainly doesn't work that way in general, and Andrei doesn't want it to. The reasoning is that constants are so common in D (likely due to CTFE) that you'd have variables all over the place which were in all caps, and it would get really annoying. So, no. There is no rule in D that constants should be fully uppercase. - Jonathan M Davis