The Apple Calculator Language
wadetregaskis.com25 points by ingve 6 hours ago
25 points by ingve 6 hours ago
Or, what Jef Raskin would have thought of MacBasic:
https://www.folklore.org/MacBasic.html
Agree w/ the page author's fondness for RealBasic --- still have a copy of _BASIC for Windows 3.0_ which had a copy of it on a floppy disk (and a nifty graphical poker game as an example). Xojo is alive and well, though I haven't been able to justify a license, (diverted to HyperCard and Runtime Revolution which became LiveCode until their opensource rug pull) --- probably going to get PureBasic/SpiderBasic for my next project.
Are Raskin's criticisms of Pascal addressed in Oberon?
Awesome that this page has a running copy, and I'm looking forward to reading the original document.
Turning it around --- what programming language now available would best fit Jef Raskin's ideals? Arguably, Python won --- would the Pythonic way of doing things have won him over?
"stressed" [8..1]
desserts
Beautiful. Far more so than Python’s "stressed"[::-1] (which I also think is very neat.)Oddly given the comments on Pascal it reminds me most of Pascal’s range syntax. I love its ranges and sets.
> Beautiful. Far more so than Python’s "stressed"[::-1]"
“stressed" [8..1]” Looks better, but IMO is worse, as it requires you to know the length of the string. Change the string and forget to update the indexing expression and you’ve got a (possibly silent) bug.
Having said that, Python IMO may be too powerful here, allowing, for example
"abcdefghijklmnopqrstuvwxyz”[-5:10:-3]
'vspm'
Makes perfect sense (from the fifth character from the end, step back 3 characters at a time until you reach the 10th character), but may be too cryptic for some.Every time I see a manipulation like that, I yearn for LISP and CAR and CDR and so forth...
This reminds me of Frink https://frinklang.org/ which cleverly carries units through calculations. It borrows from many other languages and has some "clear text" commands like parent post, but it's emphasis on unit consistency helps avoid conversion slop.
_That_ is _very_ cool, esp. that it can make images (in SVG). I don't suppose anyone has implemented it (or something similar) in a language other than Java?