[plt-dev] infix prefab literals
On Fri, Feb 6, 2009 at 11:40 AM, Dave Herman <dherman at ccs.neu.edu> wrote:
> Would it cause any problems to extend the reader syntax of prefab literals
> to allow the double-dotted-infix notation? E.g.:
>
> > (define-struct : (name binding) #:prefab)
> > #s(foo . : . 42)
> #s(: foo 42)
> > (equal? #s(foo . : . 42) #s(: foo 42))
> #t
As an aside, I believe you shouldn't have to write that define-struct
to run those expressions. Hence the word "prefab". You only need the
define-struct to use the functions make-:, :?, :-name, and :-binding.
--
Carl Eastlund