Re:Rust 0.2 released
by Arelius on Friday March 30, 2012 @02:17AM
(#3774741)
I think your first point is valid, but Punctuation has other advantages, the symmetry between {} and the distinctness of the symbols (Taller than most, for instance) provide other advantages for the later.
[ Parent
| on HN ]
Re:Rust 0.2 released
by willvarfar on Friday March 30, 2012 @03:14AM
(#3774839)
This irks me to bits. You need to be an ambidextrous octopus to get a { out of my (non-US) keyboard.
The problem is many languages are designed on US keyboards. And even engineers who are otherwise mindful of unicode and other internationalization problems, may trivially forget what keys may not be on other keyboards.
I suppose your best bet may be to muck a bit with the key bindings of your particular text editor. IMO, I already swap some keys around to make () and {} more usable.
Re:Rust 0.2 released
by willvarfar on Friday March 30, 2012 @05:09AM
(#3775072)
continuing this tangent, I'm not a fan of closing blocks either; I much prefer indentation http://williamedwardscoder.tumblr.com/post/18319031919/progr...
Yeah, Significant whitespace is why I won't code in Python anymore. Also, the linked article's comparison of Haskell and Python on readability is an awfully poor comparison, Haskell has notoriously terse syntax, In comparison to Python, which is nearly designed with the sole purpose of having good looking syntax.
Re:Rust 0.2 released
by willvarfar on Friday March 30, 2012 @05:56AM
(#3775177)
but that was the very point of comparing Python and Haskell.
FWIW the Haskell crowd were super-defensive and claimed that Haskell is super-readable (by them).
Now in that article I talk about 'curly bracket' languages in general, meaning those that use symbols (words) to denote blocks rather than indent. And I don't like reading them because of that.
I wonder which programming language's syntax requires the least shifting? On my (en-US) keyboard, the following punctuation does not require shifting:
`-=[]\;',./