== The aesthetics of syntactic sugar The Unix _test_ program makes for a great illustration of the aesthetic importance of syntactic sugar, to go along with its [[pragmatic effects SyntacticSugarMatters]]. Consider the following two shell script lines: > if test -f /some/file; then ... > > if [ -f /some/file ]; then ... In any Bourne shell environment worth its name, these two have exactly the same results and in fact run exactly the same program (or [[an imitation of it ../unix/UnixWithoutTest]]), because _[_ is just another name for _test_. But at least to me, they read significantly differently, and I find that the second one looks better and reads more clearly. (I think the problem with the first one is that everything looks the same, because it's all words and switches. In the second one, the _[_ and _]_ stand out visually and so act as useful punctuation.) To go out on a limb, I think that this is one of the drawbacks of languages like Lisp. By having no syntax they also have no syntactic aesthetics, whether bad (all too common) or good; instead, everything disappears into [[an even flow of words and parentheses ReadingLisp]]. There are virtues to this regularity, but I can't help but think that such languages are missing something too. (Possibly the answer for syntax-less languages are IDEs that add in 'punctuation' in the form of colour, different fonts, and so on.)