The 25 Year Old UNIX Bug
1983. The year of the IBM PC XT, the Apple Lisa, Pioneer 10 leaving the solar system, and Hooters opening up shop in Florida. It's also the birthyear of a 25 year old UNIX bug, squashed only a few days ago....
|Conform your JSON to ECMAScript 4 with JCON|
type.contains?([?a?, 1]) # => true
type.contains?([?a?, ?b?]) # => false
type.contains?([?a?, 1, 2]) # => true
// via RSpec
In other JSON news, it appears that new ECMAScript standard will no longer reserve the words:
abstract boolean byte char double final float implements int interface long native package private protected public short static synchronized throws transient volatile
And Douglas Crockford says that no browsers reserve them, and thus he is unreserving them from jsLint.
Read more at: http://feeds.feedburner.com/~r/ajaxian/~3/272812356/conform-your-json-to-ecmascript-4-with-jcon.
|< Prev||Next >|