News for hackers. Stuff that matters.
Re:Parsing R code: Freedom of expression is not always a goo... by tomlue on Tuesday June 14, 2022 @08:09AM (#31737963)
I prefer the R formula syntax. i.e

~ . + 1 ~ .x + .y

Re:Parsing R code: Freedom of expression is not always a goo... by tfehring on Tuesday June 14, 2022 @11:58AM (#31741313)
I like this syntax better than the new lambda syntax, but I think it's good that a proper lambda syntax exists now. Not all higher-order functions accept formulas (they have to wrap their function arguments with rlang::as_function or equivalent), and there are probably some obscure cases where the distinction between a formula and a function matters.