Jonathan M Davis napisał: > > > 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.
Right on. > So, no. There is no rule in D that constants should be fully > uppercase. So if not uppercase, what is the convention for constants then? And, to hair-split more, what is a constant to begin with? Would e.g. a big immutable configuration tree structure fall into that bucket? Or a logger object? -- Tomek