On Sunday, 25 February 2024 at 04:55:08 UTC, Danilo wrote:
>What about adding keyword forms for some operator symbols, like in C++ ?
Symbol | Keyword
----------------
! | not
!= | noteq
|
&& | and
|| | or
|
& | bitand
| | bitor
Use ufcs:
bool and(bool a, bool b) => a && b;
if(foo.and(bar))
// compare to
// if(foo and bar)
-Steve