Because sometimes I don't have CoffeeScript available to me. I could.
Here's where I'm starting:
var result = eval('\
var c=a * b;\
And here's where I want to be:
var coffeescript = '\
a = 0.5
b = 0.5
c = a * b';
var begin-magic = // ...
var end-magic = // ...
var result = eval(begin-magic + coffee-script + end-magic);
And then I want to end up with the same result.
If I can do this, then I can write CoffeeScript and never have to go back to writing
var because I'm in some environment where I don't have it.
I haven't figured out how to do this yet. So I filed a StackOverflow question about it.
Manhattan mobile software engineer.