3 ms·
Regarding FP: My daughter is a (non CS STEM) student at UC. She knows one language: "R". (I tried to get her to learn Python in high school, but it never too
by Roboprog 10y ago
Regarding FP: My daughter is a (non CS STEM) student at UC. She knows one language: "R". (I tried to get her to learn Python in high school, but it never took)
While R is certainly not a general purpose language (yet?), it is very much an FP type language, and gaining in popularity. I have only tinkered with it a little, but it looked pretty sound.
- schofar 10y agoRegarding R and its soundness (in the general colloquial sense), here's something that bothers me about it (scope leakage): > if ("blah" == "blah") { y = 2 x = y + 2 } else { x = 1 } > x 4 > y 2 I really wish what I introduce in my blocks would stay in my blocks...
- Roboprog 10y agoIf that's the worst issue, I'm not seeing much of a problem. I guess I'm not particularly hyped about intro of "let" (block scope) into Javascript, vs "var" (function scope), either, but it bothered somebody enough to need "let". Does R have an "IIFE" type construct, similar to JS or Golang?