Hacker News new | ask | show | jobs
by isoprophlex 1164 days ago
The type system is so abhorrent, it makes me wonder if it's actually proper to call R a real programming language
3 comments

"There are only two kinds of languages: the ones people complain about and the ones nobody uses."
This crappy quote is always used to justify bad design.
I'm sorry, did you mean

    [1] "There are only two kinds of languages: the ones people complain about and the ones nobody uses."
:^)
And from a different point of view, real programming languages have built-in vectorization and 1-based arrays ;)
what specifically is abhorrent about it?
The coercion always gets on my nerves, JavaScript gets a bad rep but R is pretty damn warty too; weird ass data types ('ordered factor', anyone) that just seem so very far away from design choices in other languages without being particularly ergonomic or aesthetically appealing
The data types make sense to statisticians. Ordered factors are great when you need to fit, say, an ordered logit regression model.
Which coercion specifically are you talking about? Could you give an example?

Weird data types: R had been designed for and by statisticians with their specific needs in mind, which indeed could look weird to regular people.