Editions

Dukc ajieskola at gmail.com
Wed Apr 2 12:52:59 UTC 2025


On Tuesday, 1 April 2025 at 16:21:59 UTC, Atila Neves wrote:
> https://github.com/atilaneves/DIPs/blob/editions/editions.md

> Modules without a module declaration would be considered to be 
> using the latest edition unless the default edition is 
> specified explicitly with a command line argument.

Why? I see no reason that they shouldn't behave like the modules 
with editionless declaration at the top.

> Another compiler switch to aid transitioning that this DIP 
> recommends is a -E switch which would function like -I for 
> imports but would allow the user to specify what the edition 
> should be for those imports.

Does this override the edition at the module declaration?

> This DIP proposes that editions can only be officially 
> released, i.e. finalised, when druntime and phobos can be 
> transitioned to it.

Of course they have to _support_ the new edition, but why would 
they have to _transition_ to the edition themselves? Seems extra 
work for no good reason.

All in all, I strongly support this DIP.


More information about the dip.development mailing list