Reading this book brought me a better understanding of "the expression problem" and the use of the visitor pattern as its solution. This led me to (finally) grok the use of Class _Heirarchy_ Inheritance[0] as a solution not requiring visitors. In Newspeak[1], classes can contain nested classes, so when you subclass a class, you inherit the nested classes as well. This blog post discusses the same feature affording Free Object Algebras [2].
Basic Auth
My blog: https://chalculator.com/blog
Use Credentials:
User: croquet
Pass: yadayadayada
Pain in the butt, links won't work without the creds, but they only need to be entered once.
Also, my blog comes complete with an IDE in the browser!
If you love the keyword syntax of Smalltalk, the reflectivity, the incremental compilation, live debugging in the environment, check out https://newspeaklanguage.org for theSmalltalk experience in the web browser.
That talk is fantastic! Just a note for anyone who's interested in Newspeak, it's more of a spiritual successor than a direct descendant of smalltalk (in a good way imo). It has some really slick features like:
* No global import/export namespace (all imports are dependency injected, meaning capability based security is already baked in)
* Nested classes instead of modules
* No variable assignment (everything is a method call)
* Mixins instead of inheritance
* Synchronization and code updates as near primitives
* Support for foreign objects through aliens and proxies, and foreign code can call newspeak objects through expats
reply