[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sweet-expressions are not homoiconic

John Cowan <cowan@xxxxxxxxxxxxxxxx> wrote:
> Is this some other Icon than
> <http://en.wikipedia.org/wiki/Icon_(programming_language)>?  Because that
> language is definitely not indentation sensitive: it uses semicolons
> like Pascal (separators, not terminators) and braces like C.

Eek!  I did a Google search to find various indentation-sensitive languages,
and for some reason Icon popped up.  But you're right, the "usual" Icon does not.
(Icon is an interesting language, I remember playing with it many years ago.)
I can't find my notes to see why I thought that, or find another Icon where that IS true.
Thus, I need to drop it from the list.  Sorry about that!!

In the process, though, I found another indentation-sensitive language: Microsoft's F#.
As explained in <http://www.developerfusion.com/article/122079/intro-to-f/>:
"The F# language does not use any sort of paired parentheses or begin/end markers to denote blocks of code; instead, it is indentation-sensitive, in that the indentation of code offers declaration of what code is in which nested block, much like the scripting language Python. Visual Studio will assist with ensuring the indentation is correct, but in general F#ers feel that the indentation becomes intuitive and falls away from notice before long."

--- David A. Wheeler