Adding the ?. operator to D
Per Nordlöw
per.nordlow at gmail.com
Thu Sep 17 19:58:34 UTC 2020
On Thursday, 17 September 2020 at 19:38:01 UTC, Andrei
Alexandrescu wrote:
> I recall Perl does something similar with its "or" operator.
> Changing || that way now would be too much breakage.
Python's `or` behaves the same which is mimicked by
https://dlang.org/phobos/std_algorithm_comparison.html#either
Note that I explicitly asked for statically typed languages. I
wonder what the behavior is for functional languages.
More information about the Digitalmars-d
mailing list