Editions

Atila Neves atila.neves at gmail.com
Mon Apr 14 13:44:23 UTC 2025


On Tuesday, 1 April 2025 at 16:47:09 UTC, jmh530 wrote:
> On Tuesday, 1 April 2025 at 16:21:59 UTC, Atila Neves wrote:
>> [...]
>
> Glad to see you are still working on this.
>
> Two lines might need some clarification:
>
> [...]

Yes, but this will be made easier by the user by having dub treat 
existing recipes with no explicit edition as targeting the "old" 
edition (prior to this DIP).

> If you have opted-in to editions and you are only keeping 
> around the last N editions, then when the number of editions is 
> larger than N, support for initial editions will get dropped. 
> This also implies that there will be breaking 
> changes/deprecations.

Yes, for newer compiler binaries. But not if when using older 
binaries.

> If you really want to avoid breaking changes/deprecations, you 
> can also keep last N editions plus the initial edition. You can 
> also optionally strike new ones every couple of years that are 
> meant to be kept around. That last bit depends on how often we 
> get these new editions.

That's a really interesting idea!

> In the paragraph below you say "current original edition" but I 
> think you just mean "current edition". The last sentence could 
> probably be folded into the first sentence, or otherwise 
> simplified since it covers a bit of what is in the first 
> sentence.

Sure.



More information about the dip.development mailing list