Re: [Scheme-reports] *TELUS Detected Spam*Re: [r6rs-discuss] [scheme-reports] Scheme pattern matching & R*RS Vincent Manis (23 Jan 2011 01:09 UTC)

Re: [Scheme-reports] *TELUS Detected Spam*Re: [r6rs-discuss] [scheme-reports] Scheme pattern matching & R*RS Vincent Manis 23 Jan 2011 01:08 UTC

On 2011-01-22, at 17:04, Vincent Manis wrote:
> If I have syntax-case or some other macro system, I can write a macro
>
>  (in-floating-point
>    (/ (+ (- b) (sqrt discriminant)) (* 2.0 a)))
>
> that does the renaming inside the form. I would argue that this is clearer, and allows flonum arithmetic to coexist in the same piece of code with fixnum or generic arithmetic. It definitely beats renaming.

What was I thinking? syntax-rules is good enough.

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