r/programming • • Dec 22 '11

The Problem with Implicit Scoping in CoffeeScript

http://lucumr.pocoo.org/2011/12/22/implicit-scoping-in-coffeescript/
83 Upvotes

116 comments sorted by

View all comments

Show parent comment

2

u/bobindashadows Dec 23 '11

That means that you can statically determine if a name exists or not. That in turn means that:

Technically Ruby does this! .... except because of optional parentheses, if the name doesn't exist, Ruby assumes it's a no-arg method call to self. So typos still become runtime errors. A big part of my thesis that was successful was identifying when there was no such no-arg method so the error could be called out. Too bad it was too slow and didn't support rails...