This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. No new syntax for non-TCP functions. | |
// | |
// This approach does do include a shorter syntax for regular functions, so if a classic JS function | |
// is what you want you use the classic long form function expression: | |
a.some(function (x){ | |
if (invalid(x)) | |
return true; | |
console.log(x); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//work in progress | |
// A response to jashkenas's fine proposal for minimalist JavaScript classes. | |
// and BrendanEich's Rich Corinthian Leather alternative proposal | |
//intro and justifications still to come | |
// Harmony always stipulated classes as sugar, so indeed we are keeping current | |
// JavaScript prototype semantics, and classes would only add a syntactic form | |
// that can desugar to ES5. This is mostly the same assumption that Jeremy |