What features of D you would not miss?
Timon Gehr
timon.gehr at gmx.ch
Thu Sep 15 19:10:47 UTC 2022
On 15.09.22 15:43, Dennis wrote:
> - `extern(C++, identifier)` (Mathias Lang did not manage to convince
> Walter at DConf 2022 though)
+1. This is a great example of both unnecessary language and user
complexity:
- It's basically never what you want (the same namespace imported from
different D modules will clash with itself).
- It clashes with actually useful features, now people sometimes have to
write the unsightly `extern(C++, (identifier))` to hack around the
existence of a feature that does not need to exist in the first place.
- It introduces new unexpected scoping rules.
Kill it. (Or fix it I guess, but don't just leave it the way it is.)
More information about the Digitalmars-d
mailing list