I am planning to implement class inherit interface using JavaScript. class
is the perfect word as the name of the constructor.
class = function
Languages evolve. It is prudent to reserve a few keywords that might come in use later. According to the ECMA standard, class
is a Future Reserved Word.
If you did not reserve them, introducing new keywords could conflict with existing code (which already might be using the word for other things). Happened with Java and assert
.