Re:The future of R - pessimistic thoughts by R founder Ross ...
by gwern on Monday September 13, 2010 @01:45PM
(#1687445)
Wouldn't get you pervasive laziness, though I don't know whether R is lazy by default or like Clojure in that you have to ask for it.
[ Parent
| on HN ]
Re:The future of R - pessimistic thoughts by R founder Ross ...
by zaphar on Monday September 13, 2010 @02:19PM
(#1687590)
if you use Clojures primitives you pretty much end up with laziness by default. for, map and most of the other list processing functions all return lazy lists. So while Clojure does technically require you to "turn on" laziness in most cases you'll find it's turned on already.
Re:The future of R - pessimistic thoughts by R founder Ross ...
by dododo on Monday September 13, 2010 @04:33PM
(#1688120)
in R, arguments are passed around lazily, akin to scala's =>.
otherwise, evaluation is not lazy (as in Haskell) unless done so explicitly (as in force/delay for scheme).
i think essentially no one using R professionally would accept Haskell or Clojure as a substitute. having spoken to a few: lisp-like syntax is "unreadable", and Haskell is too much effort.