On Tuesday, 1 April 2025 at 08:49:17 UTC, Dejan Lekic wrote:
>On Friday, 28 March 2025 at 19:47:11 UTC, Paul Backus wrote:
>Personally I would much, much rather have custom "operators" written using letters and words, which I can easily read and search for, than with symbols and punctuation marks.
100%
I dream of having something like this: https://kotlinlang.org/docs/functions.html#infix-notation
I wonder would that be too much for D, it already has too many features...
That particular thing should be an operator.
The general function-as-an-infix operator thing possibly complicates the parser a lot. It’s a completely different idea that definitely requires a DIP.