Re:The Evolution of Smalltalk from Smalltalk-72 to Squeak [v...
by fiddlerwoaroof on Friday August 27, 2021 @06:47PM
(#28333785)
Is there a sample that demonstrates Gilad’s ideas about parameterized modules?
Re:The Evolution of Smalltalk from Smalltalk-72 to Squeak [v...
by diskzero on Friday August 27, 2021 @06:52PM
(#28333839)
I can only point you to the doc, which you may have already seen: https://www.bracha.org/newspeak-modules.pdf
It is worth asking on the forum to see if there is some exisiting code to show this in practice.
Re:The Evolution of Smalltalk from Smalltalk-72 to Squeak [v...
by fiddlerwoaroof on Friday August 27, 2021 @10:55PM
(#28335225)
Thanks, when I was working on a particularly convoluted React codebase, I realized that it's better to pass dependencies into modules rather than importing them and, when I looked around to see what prior art there was to this idea, I came across https://gbracha.blogspot.com/2009/06/ban-on-imports.html
A simple example of Newspeak and literate programming: https://newspeaklanguage.org/samples/Literate/Literate.html
The IDE works in a similar way to the Squeak-based IDE, but there is no image and being hosted in a browser has other limitations. This isn't a language you are going to use to make a quick and dirty CRUD app (although I have) but it is an interesting example of how Smalltalk concepts can be used in a web-based world.