Project Elvis

Mark smarksc at gmail.com
Wed Nov 1 11:34:31 UTC 2017


On Tuesday, 31 October 2017 at 19:39:17 UTC, bauss wrote:
> On Tuesday, 31 October 2017 at 08:15:24 UTC, Mark wrote:
>> On Saturday, 28 October 2017 at 11:38:52 UTC, Andrei 
>> Alexandrescu wrote:
>>> Walter and I decided to kick-off project Elvis for adding the 
>>> homonym operator to D.
>>>
>>> [...]
>>>
>>> Thanks,
>>>
>>> Andrei
>>
>> The Elvis operator's purpose is to make working with null 
>> easier, but isn't null "The Billion Dollar Mistake"? :@
>
> Null is not the problem. The usage of types that can be null is 
> the problem.
>
> Although only concepts, these will solve most issues with null 
> references.
>
> https://github.com/visionlang/vsl/wiki/%2316-Null-safety
> https://github.com/visionlang/vsl/wiki/%2325-not-null-types
> https://github.com/visionlang/vsl/wiki/%2336-Error-Handling#nothrow

I don't know... Personally I prefer Haskell's approach with 
Option types, but maybe it's too late to add something like that 
to D.


More information about the Digitalmars-d mailing list