Why is D unpopular, redux.
zjh
fqbqrr at 163.com
Fri May 27 11:00:20 UTC 2022
On Friday, 27 May 2022 at 10:51:58 UTC, user1234 wrote:
> I think c++ needed this because it does not have a no-scope
> (static) foreach.
> On the other side our unscoped foreach implementation is known
> to have limits.
This is not 'static foreach', it is folding expr. If you've
written it, you know it's very cool.
```cpp
template<class...T>int f(char c,T&&...t){
return b(c,t...)+c;
}
```
More information about the Digitalmars-d
mailing list