Thoughts on versioning

zjh fqbqrr at 163.com
Tue Oct 26 06:12:43 UTC 2021


On Tuesday, 26 October 2021 at 05:59:44 UTC, Ali Çehreli wrote:
> On 10/25/21 9:58 PM, zjh wrote:

Thank you for your reply:
```d
void foo(A, B)(A a, B b)
if (isallInputRange!(A, B)) {
}
```
That's good. But I hope we can be better. Like this:
```d
void foo(ConceptA A,ConceptB B)(A a, B b)
     if (ConceptAB!(A, B)) {
     ...
}
```
I hope that when `conceptAB` is not needed but 
`conceptA/conceptB` is needed, it will be added directly before 
`A/B`.
And the `C++`'s `...`  is very cool, but `manu` was defeated by 
`Walter`. Sometimes it's better to expand directly than to use 
`array`, Why doesn't `Walter` accept it?



More information about the Digitalmars-d mailing list