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

Re: lists in enclosed expression

This page is part of the web mail archives of SRFI 108 from before July 7th, 2015. The new archives for SRFI 108 contain all messages, not just those from before July 7th, 2015.

Per Bothner scripsit:

> Specially, do you like it:
> - as a special syntax for SRFI-10[789] should define for enclosed
> expression?


> It is?  I see '@' listed as a <special subsequent> but not a
> <special initial>.

Wow, you're right.  There are several unnecessary safeguards in the
text of R7RS-small, in that case.  For example, to unquote (without
splicing) something named "@foo", you must write ", @foo", as ",@foo"
always means splicing-unquote.  Chibi allows @foo as an identifier.

> However, I just remember one complication: Kawa uses @CLASSNAME
> as syntax for annotation types, though only when CLASSNAME
> is a class type, so there isn't an actual conflict - it's
> just a little tricky to handle:  @foo is a splice if foo is
> a sequence (list or vector); it is an annotation type if foo
> is a class.

I think that's a little Perlish, but if it works for you, it's fine
for Kawa.

John Cowan                                cowan@xxxxxxxx
I amar prestar aen, han mathon ne nen,    http://www.ccil.org/~cowan
han mathon ne chae, a han noston ne 'wilith.  --Galadriel, LOTR:FOTR