3 ms·
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,
by asdff 5y ago
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.
- vore 5y agoI 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-407453348 https://github.com/tidyverse/design/issues/13#issuecomment-4...
- asdff 5y agoI 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.