[Feature Request] Keywords for symbol operators

Guillaume Piolat contact at contact.contact
Sun Feb 25 15:24:40 UTC 2024


On Sunday, 25 February 2024 at 04:55:08 UTC, Danilo wrote:
> What about adding [keyword 
> forms](https://en.cppreference.com/w/cpp/language/operator_alternative) for some operator symbols, like in [C++](https://en.cppreference.com/w/cpp/language/operator_logical) ?
>
> ```
> Symbol | Keyword
> ----------------
>   !    |   not
>   !=   |  noteq
>        |
>   &&   |   and
>   ||   |   or
>        |
>   &    | bitand
>   |    | bitor
> ```

Would love to have that. C++ has not, and, and or for a while as 
keywords.
Makes negations more readable!


More information about the Digitalmars-d mailing list