MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1j1cw7/coffeescripts_scoping_is_madness/cbaioi9/?context=3
r/programming • u/donatj • Jul 25 '13
315 comments sorted by
View all comments
Show parent comment
3
How would the coffeescript compiler distinguish between a javascript function named "foo.__bar" and a coffeescript function named "foo.__bar"?
Under your proposed plan the call to the javascript function would be name-mangeled to be "foo.__Foo__bar" which would result in a runtime error.
View all comments
Show parent comment
3
u/ms_moutarde Jul 26 '13 edited Jul 26 '13
How would the coffeescript compiler distinguish between a javascript function named "foo.__bar" and a coffeescript function named "foo.__bar"?
Under your proposed plan the call to the javascript function would be name-mangeled to be "foo.__Foo__bar" which would result in a runtime error.