Thoughts on versioning

Robert burner Schadek rburners at gmail.com
Thu Oct 28 14:00:48 UTC 2021


On Thursday, 28 October 2021 at 13:22:46 UTC, Adam D Ruppe wrote:
> The problem there was you couldn't use the two together. The 
> point of this versioning thing is to try to come up with a 
> scheme where you CAN use them together.

hm fair enough, but very likely still a mess in the middle run.

What about a compiler daemon library thing that you could write 
small programs for that converts the use of the deprecated 
feature/function into the up to date version.

Think small scale python 2to3 script, but programmable and 
something that actually understands the language.

That way, when you break and api or the language, you provide a 
fix script for each.
Apply them one after the other and you breaking change isn't 
technically breaking anything anymore.

So that way when you update your old program that used D 120.4.7 
to 202.7.2 you rust run the 82 batches of fix up scripts and move 
on with your life.

Did somebody said database migrations ....


More information about the Digitalmars-d mailing list