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

Re: Prefix, not postfix



In a message dated 4/11/06 6:48:58 PM, feeley@iro.umontreal.ca writes:
I'm not considering changing the SRFI, but I'd like to conduct an 
informal poll on this list on the syntax.  Lets pretend there was no 
historical precedent (i.e. neither Common Lisp or DSSSL), which 
syntax would you prefer?  Please answer with one of these answers:

1) I prefer prefix syntax, e.g.   (button :text "OK" :action quit)
2) I prefer suffix syntax, e.g.   (button text: "OK" action: quit)
3) I don't care

#2: I prefer suffix syntax. It seems more natural to me that the
"value" part of a keyword-value sequence _follows_ the colon.
(Rather than the colon preceding the keyword.) This was the reason
for my choice of the prefix style in WebIt! a few years ago.

Jim