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?
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.