C++ pattern matching is coming

ryuukk_ ryuukk.dev at gmail.com
Fri Oct 28 14:19:20 UTC 2022


On Friday, 28 October 2022 at 14:15:28 UTC, Dukc wrote:
> On Friday, 28 October 2022 at 14:02:37 UTC, ryuukk_ wrote:
>> The only fix is to make it a builtin language feature, the 
>> burden should not be on the users
>>
>> It is similar with Nullable
>
> We do have a builtin nullable. Given a type `T`, the builtin 
> nullable variant of it is `T*`.

We should have learnt from Kotlin, C#, Zig, Rust and countless 
more languages, and make it `?` and call it optional, but nope, 
it had to be a template, and the syntax changed at will by its 
author without consertation and consideration for its users!


More information about the Digitalmars-d mailing list