ambiguity of `<<-` when defining it for `x < y <- z`
问题 @g-grothendieck's answer to this question inspired me to play with some assignment functions such as ==<- or ><- . See the following : `><-` <- function(e1,e2,value) replace(e1, e1 > e2, value) x <- c(5,15) x > 10 <- 42 x # [1] 5 42 I can also define it for < : `<<-` <- function(e1, e2, value) replace(e1, e1 < e2, value) x <- c(5,15) x < 10 <- 42 x # [1] 42 15 But the problem is that now the <<- operator is redefined and this doesn't work anymore : x <<- "hello" Error in replace(e1, which(e1