[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Prefix, not postfix
This page is part of the web mail archives of SRFI 88 from before July 7th, 2015. The new archives for SRFI 88 contain all messages, not just those from before July 7th, 2015.
In a message dated 4/11/06 6:48:58 PM, firstname.lastname@example.org 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.