Project Elvis
Dejan Lekic
dejan.lekic at gmail.com
Mon Oct 30 11:32:23 UTC 2017
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.
>
> Razvan Nitu has already done a good part of the work:
>
> https://github.com/dlang/dmd/pull/7242
> https://github.com/dlang/dlang.org/pull/1917
> https://github.com/dlang/dlang.org/pull/1918
Is it going to be something similar (or the same) as in Kotlin?
(Reference:
https://kotlinlang.org/docs/reference/null-safety.html#elvis-operator )
I see from comments that different people think of it in a
different way. I suggest them to read this section from Kotlin
docs to understand the reasoning behind the elvis operator.
More information about the Digitalmars-d
mailing list