guile-devel
[Top][All Lists]
Advanced

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

..1 and ...+


From: Andy Wingo
Subject: ..1 and ...+
Date: Tue, 12 Oct 2010 20:37:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Hello,

It appears that Racket's syntax-parse macro system writes `..1' as
`...+'. It seems to me to be a better spelling of match's `..1', and
better embodies the "0, 1, many" aspect of counting.

  
http://docs.racket-lang.org/syntax/syntax-patterns.html?q=...+#(form._((lib._syntax/parse..rkt)._......+))

I think I'm going to recommend ...+ as the preferred spelling of this
concept, and eventually add it to Guile's syntax-rules / syntax-case
system.  Your match system might want to add it too, as a synonym of
..1.

Just a thought, and an idle one at that, given that I have not
implemented anything yet ;)

Andy
-- 
http://wingolog.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]