News for hackers. Stuff that matters.
Re:Lambda.r Functional Programming in R by kkoncevicius on Sunday December 27, 2020 @07:24AM (#25550562)
I first ran into this package more than 5 years ago, and tried it for a bit. Unfortunately, I think, it's a bit too intrusive and makes your code so much harder to read for people who are not familiar with the package.

The author is an interesting guy. He has lots of ideas about R, but seems to have spread himself a bit too thin and so he doesn't really finish them. This package is one example, but he also was in the middle of writing two nice books about R [1] [2], and they are still in limbo.

[1]: https://cartesianfaith.com/2017/04/14/modeling-data-with-fun...

[2]: https://cartesianfaith.com/2018/11/12/preview-my-new-book-in...

Re:Lambda.r Functional Programming in R by sieste on Sunday December 27, 2020 @12:18PM (#25552482)
I agree with it being a bit intrusive. I certainly wouldn't write a package in lambda.r or use it in code that I share with coworkers. I think the target audience are people familiar with R who want to explore and play with pure FP concepts, without leaving their comfort zone.
Re:Lambda.r Functional Programming in R by mespe on Tuesday December 29, 2020 @01:22PM (#25572963)
This.

My first thought was "I hope I never encounter code that uses this." It's interesting as a proof of concept, but it makes your R code difficult to understand to 99.9% of R programmers. In my opinion, that is a pretty high cost for what I would consider mostly syntactic sugar.

Re:Lambda.r Functional Programming in R by mushufasa on Tuesday December 29, 2020 @02:11PM (#25573540)
I agree with this.

That said, a lot of the use-case of R is one-off scripts, run locally on a machine by an analyst, as part of preparing a written report for non-technical stakeholders. So the code readability isn't as important.

This is both a strength and weakness of R in general. The R community has many different ways to accomplish the same goals. Production systems decline to use R in large part because of the code maintenance burden across a team, versus Python's "one right way" approach.

Re:Lambda.r Functional Programming in R by mespe on Tuesday December 29, 2020 @06:07PM (#25576180)
Every time I think code readability isn't important, I am inevitably proven wrong. Either I need to go back months later and need to figure out what I did, or I end up sharing with others. Even those one-off, "never going to touch this again" scripts.
Re:Lambda.r Functional Programming in R by matmatmatmat on Tuesday December 29, 2020 @04:24PM (#25575223)
I wonder how true this "one right way" is? For instance, I've seen multiple ways to do the same thing in Pandas.

Does it come down more to an agreement among the team about how code should be written?

Re:Lambda.r Functional Programming in R by notagoodidea on Wednesday December 30, 2020 @04:41AM (#25580149)
I found that the "one right way" python's mantra fall apart when it comes to pandas and numpy. Those libraries must be seen as DSL on top of the language IMHO.