@getify @BrendanEich @RReverser Would you accept (template`look ma a ${str}ing`)("str") -> "look ma a string" ?
@getify If you want eval, why not spell it `eval`. var t = new Template("hello ${name}"); function() { var name = "Yehuda"; return eval(t) }
-
-
@wycats go back to the gist i sent you earlier. eval(..) was snippet 1.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats i don't want eval. i want a very specific thing that's not even remotely as broad as eval. but i've already explained that. -
@getify I don't see any difference between ES5 eval and the restrictions you're proposing here. -
@wycats by ES5 eval, i assume you mean strict direct eval. beyond that, diff is `${ Expression }` vs eval( " Statement " ). big diff.
End of conversation
New conversation -
-
-
@wycats in any case, this is probably a pointless debate. it's clear no one sees my PoV on it.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.