News for hackers. Stuff that matters.
Re:Programming Language Rankings: June 2016 by Roboprog on Thursday July 21, 2016 @12:34PM (#12137994)
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.

Re:Programming Language Rankings: June 2016 by schofar on Friday July 22, 2016 @03:27PM (#12146115)
Regarding 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...
Re:Programming Language Rankings: June 2016 by Roboprog on Friday July 22, 2016 @11:27PM (#12148208)
If 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?