version(number) is completely useless

Andrey Zherikov andrey.zherikov at gmail.com
Fri Jul 29 10:27:18 UTC 2022


On Friday, 29 July 2022 at 01:04:42 UTC, Walter Bright wrote:
> On 7/28/2022 7:57 AM, Andrey Zherikov wrote:
>> Did I get you right that you discourage using `static if` for 
>> versioning the code (according to [this 
>> post](https://forum.dlang.org/post/tbair7$2ltc$1@digitalmars.com)) with an exception for `static if(__VERSION__ ...)`?
>
> Yes, you did.
>
> Mainly, because the compiler doesn't generate a predefined 
> version for every change, which is impractical.
>
> Frankly, what you're trying to do is hopeless, hence the 
> suggestion to simply pick a minimum __VERSION__ to support.

I'm just trying to clarify your recommendations as a language 
author. Whether I like it or not is different question but making 
things clear is important IMO. Thanks for your answers!


More information about the Digitalmars-d mailing list