Am I evil for this?

Walter Bright newshound2 at digitalmars.com
Fri Oct 14 22:44:35 UTC 2022


On 10/14/2022 1:24 PM, jmh530 wrote:
> What is your opinion about R's custom infix binary operators? (ignoring that R 
> is dynamically typed)
> 
> So for instance, you can make a function
> ```
> `%foo%` <- function(x, y) { #does something }
> ```
> and use it like `x %foo% y`

I've thought about it many times. It keeps coming back to "it's just too ugly."

Operator precedence is also a problem.



More information about the Digitalmars-d mailing list