3 ms·
It's a mess for sure and you'll never get a reasonable FP language from it. You won't get a Smalltalk out of it either. Instead we get a mish-mash of ideas hash
by agentultra 4y ago
It's a mess for sure and you'll never get a reasonable FP language from it. You won't get a Smalltalk out of it either. Instead we get a mish-mash of ideas hashed together by a committee of people with differing backgrounds, experiences, and ideas.
... but some of those FP ideas are pretty neat and when used well can make code that is easier to maintain (for people who are familiar with the concepts).
- rileyphone 4y agoIt's actually fairly easy to get most of a Smalltalk out of Javascript. Prototypes and first-class functions form a really powerful basis for a higher language. Though, to your point, it wouldn't really still be Javascript.
- rory 4y agoDo you know of an example snippet / article demonstrating how to do this?
- rileyphone 4y agoSmalltalk in Self: nearly complete Smalltalk implementation on similar prototypical language. http://www.merlintec.com/download/mario.pdf http://www.merlintec.com/download/mario.pdf Mootools: ancient class system for Javascript. https://mootools.net/core https://mootools.net/core Also, here's a very old Crockford article on implementing classes in Javascript. https://crockford.com/javascript/inheritance.html https://crockford.com/javascript/inheritance.html
- rory 4y agoThank you!