mlr-org / mlr3misc

Miscellaneous helper functions for mlr3
https://mlr3misc.mlr-org.com
GNU Lesser General Public License v3.0
11 stars 2 forks source link

Suggestion: Compound assignment operators #33

Closed mb706 closed 3 years ago

mb706 commented 4 years ago

We could define operators such as %+=%, %-=% etc. What I seem to need a lot is

x = c(x, <something>)

so maybe we could have an %c=% operator for that.

See here for my implementation in an old project.

berndbischl commented 4 years ago

I am rather against changing the language thru the backdoor. I know what you mean, I understand why you want that. But imho this is not the place. There is also not stopping if we do this.

mllg commented 3 years ago

Agreeing with Bernd, this only complicates things.