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

Re: #\a octothorpe syntax vs SRFI 10

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

Matthias Radestock wrote:

Good point! Arrays would not have the same status as lists and vectors unless the quasiquotation and syntax-rules pattern/template syntax&semantics were extended to deal with them.

Srfi-10-style literals would be more appealing if they integrated
well with quasi-quotation.

What I'd mean is that something like this should be well-defined:
  `#,(tag datum1 ,datum2 ,@datum3)

If tag is defined using:
  (define-reader-ctor tag constructor)
the this would be equivalent to:
  `(,constructor datum1 ,datum2 ,@datum3)

Not sure how useful this is.  Also, the use of comma
in #, might be confusing whencombined with quasi-quotation.
	--Per Bothner
per@xxxxxxxxxxx   http://per.bothner.com/