News for hackers. Stuff that matters.
Re:A Pamphlet against R: Computational Intelligence in Guile... by discardable_dan on Monday July 30, 2018 @04:50AM (#17643034)
My main beef with R is that this is valid code:

    > f <- function (n) {
    +     f <- 1
    +     if (n == 0) return(f) else n * f(n-1)}
    > f(5)
    [1] 120
The language has some warts, that's for sure.
Re:A Pamphlet against R: Computational Intelligence in Guile... by Tarq0n on Monday July 30, 2018 @09:14AM (#17644167)
Functions having their own environment is actually pretty useful once you get your head around them.
Re:A Pamphlet against R: Computational Intelligence in Guile... by hatmatrix on Monday July 30, 2018 @05:29AM (#17643177)
Isn't that just lisp-2-like behavior where functions and data maintain separate identities?
Re:A Pamphlet against R: Computational Intelligence in Guile... by kgwgk on Monday July 30, 2018 @06:41AM (#17643467)
No, if you set f <- 42 between the moment where you define f as a function and the moment where you call it then it doesn't work anymore:

  > f(5)
  Error in f(5) : could not find function "f"