Better branding of -betterC
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Fri Nov 13 16:10:38 UTC 2020
On 11/12/20 1:07 PM, Dibyendu Majumdar wrote:
> On Thursday, 12 November 2020 at 15:39:53 UTC, Paul Backus wrote:
>> On Thursday, 12 November 2020 at 14:50:33 UTC, Dibyendu Majumdar wrote:
>>> On Thursday, 12 November 2020 at 00:48:24 UTC, Paul Backus wrote:
>>>>
>>>> They're available as a library:
>>>>
>>>> https://code.dlang.org/packages/sumtype
>>>
>>> Thanks. Although without language support it probably doesn't get you
>>> safety?
>>
>> SumType is both type-safe and memory-safe, if that's what you're asking.
>
> Hi no, my point was that it not being a language feature means that
> people have to consciously use it. And that means it is probably not
> going to be.
>
> Also the compiler cannot assist you in making this choice.
FWIW SumType is solid enough to be a good candidate for the standard
library.
More information about the Digitalmars-d
mailing list