Yet another terrible compile time argument proposal

zjh fqbqrr at 163.com
Mon Jan 15 03:43:04 UTC 2024


On Sunday, 14 January 2024 at 22:49:31 UTC, Paul Backus wrote:

> In C++, this approach to language design has lead to having 
> [seven different types of initialization][1], among other 
> disasters. If we follow the same path with D, we will end up in 
> the same place.
>
> [1]: https://en.cppreference.com/w/cpp/language/initialization


In fact, the `initialization` of C++is better than that of D.

```d
//C++;
A a{1,2};

//VS,D:
A a=A(1,2);
```

Users don't care about details!



More information about the Digitalmars-d mailing list