4 ms·
The interesting thing to note is that most of this discussion around notation is being applied to mathematics. Trying to provide higher level notation (beyond A
by gfodor 16y ago
The interesting thing to note is that most of this discussion around notation is being applied to mathematics. Trying to provide higher level notation (beyond ASCII) to programming apparently was given up on a long time ago. It's a shame.
- andrewl 16y agoThere's always Fortress, which can be written in Unicode: http://projectfortress.sun.com/Projects/Community/ http://projectfortress.sun.com/Projects/Community/
- derefr 16y agoFortress code is still a linear stream of characters in a grammar that gets LR-parsed into an AST, though. Many other approaches are possible if you start with a different data structure—a digraph of tokens with node-identity, for example.
- jamii 16y agoNotation doesn't apply just to the symbols in which you write but the meanings and operations assigned to them and the way in which they can be combined. This applies as much to the expressiveness of language semantics as it does to the language syntax. Consider how things like first class functions change the way one approaches a problem and expresses the solution.
- Jach 16y agoIt is a shame, but I'm not sure how we could fix that situation. I'd much prefer to type λ than 'lambda', but my keyboard doesn't have a λ key!
- gfodor 16y agoNo, but your iPad could.
- pavel_lishin 16y agoDoes it have a ⊄ key?
- _delirium 16y agoNo, but that's why I never type it directly. In TeX, one gets it via the ASCII notation \not\subset. This gives TeX-math the curious property that it's read in a different set of symbols than it's written in. There have been some attempts at that in pretty-printing programming languages, but none seem to have really caught on.
- maxwell 16y agoThe problem with non-ASCII is that it's harder to read, because the pronunciation (even if only mental) is ambiguous. Imagine if you don't know how to pronounce Greek letters, for instance. I couldn't begin to pronounce APL, and thus would have to remember shapes. I think this is the reason everyone has an issue with Lisp's prefix notation for arithmetic. They read (+ 1 2 3) as "plus one two three" and it sounds weird. I wonder if a Lisp would sell if you only allowed alphanumeric function names, e.g. (sum 1 2 3) (Not to mention that "Lisp" is the worst name ever.) It's just a hunch, but I suspect the root cause for European imperialistic domination was that they had a more accessible writing notation. It could even be that the difficulty of Chinese writing actually produced "more Edisons", but likewise prevented diffusion. And if James Burke has taught me anything, it's that communication is way more important than inspiration or perspiration. It's exactly like Lisp. As it took Europe centuries to catch up with Chinese technology, it seems likely that it'll take Algol-style langs a century to catch up with Lisp concepts.
- jessriedel 16y agoBut your argument could be applied to mathematics, where powerful, non-ASCII symbols are very useful. What's different about programming?
- maxwell 16y agoNothing. I think non-ASCII symbols are a net loss in mathematics too. While they're powerful (taking succinctness to be equal to power), they come at the expense of accessibility. With great power comes great power consumption; there's a reason most people don't have jet engines under their hood or read mathematics: doing so is very expensive. I believe the cognitive cost outweighs the expressive benefit.
- jeangenie 16y ago>> It's just a hunch, but I suspect the root cause for European imperialistic domination was that they had a more accessible writing notation. the greeks devised a fantastic writing system, including representations of vowels (which its predecessor lacked). aristotle was the first person to say words should be separated when written (before all letters were run together, leaving the reader to unscramble). your claim is a stretch, but it's interesting to note that reliable and easy ways to communicate and sustain our collective knowledge have become unexpectedly critical.