|
|
|
|
|
by roenxi
2017 days ago
|
|
The anonymous function change is probably a (small) mistake. function(x) {x + 1}
is already logically equivalent to and from some perspectives an arguable syntax improvement on \(x) x + 1
Giving everyone two ways of doing one thing just means the tutorials will be fragmented and beginners even more confused.Tierney mentioned that tidyverse found function(x) too verbose and uses fomula syntax. Given how tidyverse often uses the "y ~ x" formula notation, this might actually be picking up deficiencies in R's macro system rather than in the function notation and the problem got misdagnosed. |
|
It will also produce shorter, and clearer, lines of code.
What I don’t understand is the reference to “formula syntax”. What is the issue and how does the new syntax solve it?