C++ pattern matching is coming

Tejas notrealemail at gmail.com
Fri Oct 28 14:42:43 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*`.

I really wonder whether we'd have problems with nullables if 
`scope T* a = new T()` always allocated on the stack, with some 
way to denote to allocate on the heap if one wants to do that


More information about the Digitalmars-d mailing list