autotelicum/Smooth-CoffeeScript — Issue #9: Accessing array keys/properties
Author: singlow
Created: 2011-11-21 14:54:58+00:00
State: open

When you mentioned (under Data Structures) that using dot property syntax for arrays/objects, you mentioned several criteria for when it may be used or not used. However you should mention that you cannot use dot syntax for properties whose names are reserved words. You did say they must be valid variable names, but most beginners will not make that connection. I encountered recently a tough to find bug where the property someObject.new was being referenced and several browsers choked, while others did not.