3 ms·
I'm not sure closeness to natural language is necessarily something you would want. I remember some super painful experiments with AppleScript (https://en.wikip
by elcapitan 9y ago
I'm not sure closeness to natural language is necessarily something you would want. I remember some super painful experiments with AppleScript (https://en.wikipedia.org/wiki/AppleScript https://en.wikipedia.org/wiki/AppleScript) 10 years ago, which really pushed me away from that ideal. The languageification of a programming language creates a lot of cruft.
if the text returned of (display dialog "Username" default answer "") is userAns
Similar issues can be seen in some of the monstrosities created as ruby DSLs, for example in rspec
expect(true).to eq true
where it becomes hard to understand what's actually going on.
- wolfgang42 9y agoHyperTalk came closer than anything else I'm aware of to this ideal: ask "Username" if it is "Harry" then put "Hi there, Harry!" into field Greeting else put "Hey, you're not Harry, you're" && it into field Greeting