36 ms·
The fact that APL uses special characters is almost completely arbitrary. It could trivially be turned into the usual pseudo-English syntax by replacing all th
by TheOtherHobbes 9y ago
The fact that APL uses special characters is almost completely arbitrary.
It could trivially be turned into the usual pseudo-English syntax by replacing all the single-character symbols with conventional ASCII keywords. (As in J, etc.)
Of course it wouldn't be as dense then, and the distance between the keywords and the mathematical notation they're based on would be greater.
If that's the only reason EWD didn't like APL, it's a rather silly reason.
It's also wrong. If anything, a couple of centuries of mathematical tradition suggest it's easier to reason about logic and formal correctness with terse arbitrary symbols than with English keywords, and that the terseness makes it easy to write down dense concepts that would be much less elegantly expressed in pseudo-prose.
You have to learn the symbols to do math at that level, and most people don't find the learning all that hard.
Given that you have to learn new keywords in every language anyway, it's not a huge stretch to learn some symbols instead.
And of course after you do that there is absolutely no reason not to write and check code on paper, if you happen to think that's important.
- taeric 9y agoThis seems somewhat dishonest. It goes out of its way to introduce a new dense language that is just as far from the original math. The Ackerman function is demonstrative of that. I had to consult the wiki page to see what it actually did. The argument isn't to be against notation. But the most common hurdle to apl that he saw was complaints on lacking a specific terminal. If that is truly needed, maybe a change to not need the terminal would have been a wiser choice?
- JdeBP 9y agoThat is of course to implicitly accept that the criticism is in fact valid. It is rebutted later on the page, below the letter, with an argument that, in a modern form, would be something akin to You would reasonably expect a visiting professor teaching Web design to complain about the lack of a WWW browser.