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

Re: [Scheme-reports] 'else' auxiliary syntax



Per Bothner scripsit:

> Is the following reasonable (for r7rs)?
> 
> (define-syntax else
>    (syntax-rules ()
>      ((_ . rest)
>       (syntax-error "invalid use of 'else"))))

That's a good definition, yes.  It's also fine for R5RS, since R5RS leaves
the question of binding open.

-- 
John Cowan          http://www.ccil.org/~cowan        cowan@x
Said Agatha Christie / To E. Philips Oppenheim
"Who is this Hemingway? / Who is this Proust?
Who is this Vladimir / Whatchamacallum,
This neopostrealist / Rabble?" she groused.
        --George Starbuck, Pith and Vinegar

_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports