D vs nim

Mark smarksc at gmail.com
Thu May 3 22:15:45 UTC 2018


On Thursday, 3 May 2018 at 20:57:16 UTC, Dennis wrote:
> On Thursday, 3 May 2018 at 19:11:05 UTC, Mark wrote:
>> Funnily, none of these languages have a "static if" construct, 
>> nor do Rust, Swift and Nim. Not one that I could find, anyway.
>
> What qualifies under "static if"? Because Rust, Swift and Nim 
> do have conditional compilation.
> https://doc.rust-lang.org/book/first-edition/conditional-compilation.html
> https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/Statements.html (conditional compilation blocks)
> https://nim-lang.org/docs/manual.html#statements-and-expressions-when-statement

Fair enough. I should have written "static if + CTFE".


More information about the Digitalmars-d mailing list