Why is the "linux" version identifier all lowercase?

Jesse Phillips jessekphillips+D at gmail.com
Sat Jul 30 09:20:54 PDT 2011


Nick Sabalausky Wrote:

> "Lars T. Kyllingstad" <public at kyllingen.NOSPAMnet> wrote in message 
> news:j10hg0$2c11$3 at digitalmars.com...
> > http://d-programming-language.org/version.html#PredefinedVersions
> >
> > Why is the "linux" version identifier all lowercase?
> 
> Because it's from the time when D/Phobos policy was to expect users know 
> where an identifier was borrowed from in order to know how to 
> spell/capitalize it, instead of being internally consistent.
> 
> Seriously.
> 
> I remember NG discussions a while back about why the "linux" identifier was 
> all-lower, and that's pretty much all it amounted to, much like the 
> pre-2.054 std.string. Well, a combination of that and the language's 
> irritating inability to distringuish between an "off" version and a mistyped 
> version (although this particular argument hinged on the assumption that 
> porting C to D is a more important use of D than writing new D code).
> 
> Ok, so I'm biased on the matter ;)
> 
> 

It should probably just work for both lower and upper case. I doubt anyone would define their own identifier based on a case difference.


More information about the Digitalmars-d mailing list