News for hackers. Stuff that matters.
Re:Radian: A 21 century R console by vore on Thursday July 01, 2021 @11:26PM (#27707536)
Not the original poster, but the language has some really weird edges. For instance, check out this wild behavior: http://www.hep.by/gnu/r-patched/r-lang/R-lang_41.html
Re:Radian: A 21 century R console by asdff on Friday July 02, 2021 @12:16AM (#27707746)
This is because R borrows a lot of syntax from S. When R came out, statisticians were using S, so it was natural to make it like this. If they went another way, you'd get statisticians in mailing lists 20 years ago bemoaning how its so much not like familiar S, rather than regular old programmers 20 years later today who bemoan that R isn't like familiar python like what happens on HN whenever there is an R thread.
Re:Radian: A 21 century R console by vore on Friday July 02, 2021 @12:59AM (#27707949)
I think the behavior is so wildly inconsistent that it's not really justifiable, regardless of being a statistician or not: https://github.com/tidyverse/design/issues/13#issuecomment-4...
Re:Radian: A 21 century R console by asdff on Friday July 02, 2021 @03:57AM (#27708934)
I mean compared to other languages these sorts of quirks might seem like big deals, but they rarely come up. You see that error, you copy paste and find a stack overflow thread explaining it, you know what to do next time and move on. R is certainly no C.
Re:Radian: A 21 century R console by kgwgk on Friday July 02, 2021 @03:41AM (#27708825)
As far as weird edges go, that one is really, really mild. It may even be considered a good idea!

For people interested in weirder things, check The R Inferno (I think it's somewhat outdated by now, though):

https://www.burns-stat.com/documents/books/the-r-inferno/

Re:Radian: A 21 century R console by jsmith99 on Friday July 02, 2021 @04:59AM (#27709305)
That book isn't so much about R weirdness. It's more about teaching data scientists to consider the implications of practices like copying a huge table in memory on every loop iteration.
Re:Radian: A 21 century R console by hugh-avherald on Friday July 02, 2021 @01:04AM (#27707971)
Idiosyncrasies are not something unique to R.

One could express the same surprise at an empty list being considered false in some contexts.