Curly-infix and readable Lisp
Posted Dec 4, 2012 17:09 UTC (Tue) by
david.a.wheeler (guest, #72896)
In reply to:
Curly-infix and readable Lisp by dakas
Parent article:
GNU Guile 2.0.7 released
Poster says:
the familiarity you hope for is not more than a front, and understanding just when this front does what you expect... will require a deeper understanding than just writing in Scheme in the first place would.
The curly-infix notation is defined in terms of underlying list notations, so this fear is unwarranted. In Lisp, 'x is just an abbreviation for (quote x); this is just another abbreviation. It's important to note that curly-infix, unlike past infix notations, does not lose the Lisp advantages of homoiconicity and genericity; for details, see the SRFI-105 specification or the "readable" project materials.
And you'll have a harder time communicating with others.
Quite the reverse. If you've taken high school math, you know what infix notation is, so infix notation makes it easier to communicate with others. Infix notation isn't going away; ALL people, programmers or not, are trained to use infix operations with typical arithmetic operations, and failing to support infix notation is a real problem for Lisps.
... An infix layer is not going to help, in particular since it does not really have a corresponding print form, so all output and all intermediate forms will look unfamiliar.
It has a corresponding print form, namely, {...}.
... it will get used for very little "serious work" (TM), basically by almost nobody from the purported target clientele of people feeling unable to get their head wrapped around prefix syntax, and will eventually peter out.
Scheme and Common Lisp are often avoided today for new "serious work", period. I believe one of the reasons for this is that their syntax is repugnant to most developers. It's not a matter of not being able to get their head "wrapped around" a prefix system; the prefix system is easy. Many, many Scheme and Common Lisp systems have added infix notations, but they are all incompatible with each other. If we can get a SINGLE notation adopted by many such systems, that problem disappears.
(
Log in to post comments)