matloff / R-vs.-Python-for-Data-Science

430 stars 37 forks source link

Include meta-programming capabilities? #5

Open kaneplusplus opened 5 years ago

kaneplusplus commented 5 years ago

I think this is a great comparison that maintains a level of objectivity we don't usually see with these types of comparisons.

Would it be worth including meta-programming facilities? I think R is far and away the winner and I think it's one of the core reasons R is able to facilitate the construction of DSLs (like a large portion of the tidyverse) in ways that are currently not possible in Python.

matloff commented 5 years ago

I did mention metaprog. It might be interesting to add a comment re connection to the tidyverse.

kaneplusplus commented 5 years ago

Sorry, this was an oversight on my part.

The MP-tidyverse connection might help people understand the reason tidyverse exists is because of the flexibility designed into R. Practically, the "base vs. tidyverse" debate is about programming style. Technically, it is a false dichotomy since it implies that you can have the tidyverse without R's core facilities.

matloff commented 5 years ago

Yes, I suspect that some of those blindly praising the Tidyverse don't realize it's written in base R. :-)