ckknight / gorillascript

GorillaScript is a compile-to-JavaScript language designed to empower the user while attempting to prevent some common errors.
MIT License
300 stars 34 forks source link

const and String Interpolation #125

Closed eeasley closed 11 years ago

eeasley commented 11 years ago
const FOO = \bar
let baz = "$FOO"
let qux = "$(FOO)"

transpiles to

__strnum = ...
__typeof = ...
baz = __strnum(FOO);
qux = "bar";

That seems like unexpected and undesirable behavior to me.

ckknight commented 11 years ago

Yep, this is a bug. Both baz and qux should evaluate as qux does now.

eeasley commented 11 years ago

Thanks.