[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.

On Tue, 2006-04-11 at 15:51 -0700, Per Bothner wrote:
> An alternative worth considering is an infix syntax.  For example:
> (button color="red" font="Helvetica")
> I.e. the syntax is:
>    <identifier>=<expression>
> This would be translated by the reader into (say):
>    (make-association '<identifier> <expression>)
> [...]
> Unfortunately, this syntax does conflict with historical
> <identifier> syntax in certain presumably-very-rare cases.

This conflict is not at all rare.  There are a dozen R5RS identifiers
such as string=? that would break under this particular infix syntax.