The aesthetics of syntactic sugarThe Unix 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), because (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 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. 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.) (5 comments.)
|
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |