[plt-scheme] Newbie macro problem

From: Erich Rast (Erich.Rast at t-online.de)
Date: Fri Nov 1 13:05:49 EST 2002

Am Freitag, 01.11.02, um 18:23 Uhr (Europe/Berlin) schrieb Robert Bruce 
Findler:

> how about this:
>
>   (define (flex-format str . rest)
>     (apply format str (sublist rest 0 (count-format-arguments str))))
>
> No macros required.
>

#$%$%& ;)

I better don't tell you what complicated macros I was trying out - not 
realizing this simple solution. Once again, a practical proof of the 
"keep it simple" doctrine...

Thanks a lot for your help!

-- Erich




Posted on the users mailing list.