On 2018-08-25 15:33, SG wrote:
Hi,

1) I program in C# and I'm wondering if there is something like ?? (Null-Coalescing Operator) in D? (I remember some proposals in the past).

Not in the language but it can be implemented as a library function by overloading "opDispatch". See [1] for an example.

[1] https://github.com/jacob-carlborg/dlp/blob/9d524e282803070022848c01cf6cd25a61025004/source/dlp/core/optional.d#L228-L238

--
/Jacob Carlborg

Reply via email to