On 2013-04-12 13:05, Lars T. Kyllingstad wrote:
Then let me ask you/them this: Would you prefer it was implemented as a
module-level @property function that returns a singleton class instance
instead? In other words, would you have the same API with slightly
worse performance and more complicated implementation, *just* for the
sake of a strict naming convention?
Note that 'environment' (with that name) was added to std.process years
ago. As Jesse mentioned, the fact that it was a class was just hidden
from documentation with an alias. Unfortunately, this prevented proper
documentation of its members, so changed it.
Ok, I see. I have don't have _that_ strong feelings about this. I also
wouldn't have any problem of using it as class, like it is:
Environment["foo"] = "bar";
--
/Jacob Carlborg