Null-checked reference types

Tim tim.dlang at t-online.de
Tue Aug 6 15:21:58 UTC 2024


On Tuesday, 6 August 2024 at 14:55:46 UTC, Quirin Schroll wrote:
> Add the following type suffixes to the language: `?` and `!`.

Using `!` seems to be ambiguous with templates. For example:
```
void f(T!x)
{}
```
Is `T!x` a template instance with template argument `x` or the 
new type `T!` and parameter name `x`?


More information about the dip.development mailing list