Thoughts on versioning

zjh fqbqrr at 163.com
Tue Oct 26 05:35:58 UTC 2021


On Tuesday, 26 October 2021 at 04:58:41 UTC, zjh wrote:
> On Tuesday, 26 October 2021 at 01:19:29 UTC, Andrei

We can use a method similar to the `C++` namespace without 
`mixing` the old code with the new code. Use an `import std2` to 
open the `std2` space. The `new code` is placed in the `std2` 
directory. The `new code` copies all the `old code` first, and 
then `modifies and tests` on it.
The old `std` code remains as it is, and it is maintained and 
modified.
There is no need to `mix` the new code with the old code, 
otherwise, The function is too ugly.
However, we can say to the user that the maintenance period of 
the `old std` is "10 years / 5 years" ,then we will delete the 
old code and only maintain the "new code" as "std". If the user 
continues to use the "old code", it will be maintained by the 
user.
Preferably, you can also optimize the import, such as `import 
std2: {algorithm, file, array}` To batch import modules. with 
this simplifiction, users are naturally willing to migrate.



More information about the Digitalmars-d mailing list