More operators inside `is(...)` expressions
ogion.art at gmail.com
Tue Sep 1 13:32:46 UTC 2020
On Tuesday, 1 September 2020 at 09:05:27 UTC, Jacob Carlborg
> On Tuesday, 1 September 2020 at 07:11:45 UTC, Ogi wrote:
>> Why use `version` then?
> Because that's set automatically by the compiler. Here's a list
> of the predefined version identifiers set by the compiler .
>  https://dlang.org/spec/version.html#predefined-versions
> /Jacob Carlborg
I am aware of that. I mean that the enum workaround for version
condition is the indication of its poor design.
The syntax is unreasonably restrictive. I can see the point of
prohibiting complex expressions (like `version (Windows || (POSIX
&& !LDC))`), but something as simple as version(!Windows) would
More information about the Digitalmars-d