|
|
|
|
|
by jjoonathan
4452 days ago
|
|
> Did you write qplot? (rhetorical question) Not sure what you're getting at. > A lot of these "quirks" of R are nice for end users when they're implemented well, but are unintuitive to program It's not a quirk, it's a core feature. It's used consistently and to great effect. Notice how the "subset" function takes advantage of the same flexibility. I'm about 95% sure neither the subset function nor the other standard library functions that use this "trick" were written by Hadley. The "trick" was expected to make expressions significantly easier to read and easier to write from the very beginning. It might surprise a few people who come from another language and think they've seen it all, but once they figure out what's going on (which should happen on the first tutorial or 2nd or 3rd copypaste) it'll be a pleasant surprise. Unless they kneejerk and hate on it because it's unusual among languages. |
|