On Tuesday, 10 May 2016 at 12:27:19 UTC, Johan Engelen wrote:
We resort to enums whenever 'version' is not adequate like this:
https://github.com/ldc-developers/ldc/blob/master/ddmd/globals.d#L18-L45

A good example -- which only proves how the current version() block is insufficient. So instead of version(xxx), which states your intent clearly, you get lots of non-idiomatic static ifs, which are more cumbersome and error prone.

Reply via email to