Why does Phobos use enum to define constants? For example, in std.math:
enum real E = 2.7182818284590452354L;
Why not use a global immutable? What are the advantages/disadvantages of enum over immutable?
Why does Phobos use enum to define constants? For example, in std.math:
enum real E = 2.7182818284590452354L;
Why not use a global immutable? What are the advantages/disadvantages of enum over immutable?