Skip to content

Instantly share code, notes, and snippets.

@schuyler
Created March 7, 2011 23:34
Show Gist options
  • Save schuyler/859517 to your computer and use it in GitHub Desktop.
Save schuyler/859517 to your computer and use it in GitHub Desktop.
this_kind_of_error = "breaks things unexpectedly"
i_object = {}
i_object["#{this_kind_of_error}"] = "OK so far"
another_object = {"#{this_kind_of_error}": "this is not what I expected"}
"""
$ coffee -c unexpected_paren.coffee
Error: In unexpected_paren.coffee, Parse error on line 6: Unexpected '('
at Object.parseError (/usr/local/lib/node/.npm/coffee-script/1.0.1/package/lib/parser.js:470:11)
at Object.parse (/usr/local/lib/node/.npm/coffee-script/1.0.1/package/lib/parser.js:540:22)
at Object.compile (/usr/local/lib/node/.npm/coffee-script/1.0.1/package/lib/coffee-script.js:26:22)
at /usr/local/lib/node/.npm/coffee-script/1.0.1/package/lib/command.js:117:33
at /usr/local/lib/node/.npm/coffee-script/1.0.1/package/lib/command.js:85:26
at fs:84:13
at node.js:773:9
"""
# ... but there is no paren on line 6!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment