You can scrap it and write something better but let me keep R ;)
Ross Ikaha (via
Xi'an -- thanks ;) ) gives a nice example to show why R is basically impossible to optimize:
__ f = function() {
__ if (runif(1) __ 0.5) {
__ x = 10
__ }
__ x
__ }
x in the last expression could be a local or a global,
and this won't be known until runtime!
That's pretty good.
I wonder if ... [Read more...]