DEV Community

Discussion on: Introducing Metho: Safely adding superpowers to JS

 
lawrencedol profile image
Lawrence Dol

JS hasn't "become" functional, at all -- it was functional from it's inception. Even it's prototypical OO is functional. The function truly is, and has always been, the core abstraction of JS.

What I wish is that JS engines would recognize this and deeply optimize function closures to remove any penalty for using them as object instances.

Thread Thread
 
aminmansuri profile image
hidden_dude

Point taken.. but still a messy language when compared to Smalltalk.