[Inspiration: a blog post by Ziyun Fei.]
Perl influences in ECMAScript 5
String (jsstr.cpp):- String.prototype.match()
- String.prototype.replace()
- String.prototype.split()
- String.prototype.substr()
- Array.prototype.join()
- Array.prototype.reverse()
- Array.prototype.sort()
- Array.prototype.push()
- Array.prototype.pop()
- Array.prototype.shift()
- Array.prototype.unshift()
- Array.prototype.splice()
Python influences in ECMAScript 5
String (jsstr.cpp):- String.prototype.concat()
- String.prototype.slice()
- String.prototype.match()
- Array.prototype.concat()
- Array.prototype.slice()
ECMAScript 6
ECMAScript 6 has been influenced by several languages. Examples:- Arrow functions [1] and classes [2] have been inspired by CoffeeScript.
- Comprehensions [3] and generators [4] have been inspired by Python.
2 comments:
CoffeeScript's Arrow-functions are inspired by Erlang ;-)
And then C# ;)
Post a Comment