Thoughts on versioning

SealabJaster sealabjaster at gmail.com
Thu Oct 28 04:05:09 UTC 2021


On Tuesday, 26 October 2021 at 01:19:29 UTC, Andrei Alexandrescu 
wrote:
> ...

Throwing out another DOA idea but: Would a special `@version()` 
UDA manage to get anywhere?

For example

```d
@version(1)
auto splitter(...)(...){}

@version(2)
auto splitter(...)(...){}
```

And then introduce syntax to specify which version to use?

```
import std.algorithm : splitter at 2; // as an example.
```

I've also been trying to think of a way where a specialised 
versioning tool could be used (kind of like a package manager, 
but purely for Phobos), but struggling to really come up with 
anything concrete.



More information about the Digitalmars-d mailing list