[erlang-questions] variable argument preprocessor macros

Anupam Kapoor anupam.kapoor@REDACTED
Thu Jan 15 20:10:41 CET 2009


On Wed, Jan 14, 2009 at 8:10 AM, Robert Virding <rvirding@REDACTED> wrote:
> No. The only thing you can do is have is to have:
>
>     SIMPLE_SERVER_DEBUG_2("mesg-1", "mesg-2")
> and
>     SIMPLE_SERVER_DEUBG_4("mesg-1", "mesg-2", mesg-3, mesg-4)
>
> Which is generally not a problem for you.
well, i have been using exactly the aforementioned thing currently.
however, having a bunch of identical (functionality wise) macros, with
different names, didn't seem very nice...

> An alternative would be to use LFE which has proper lisp and scheme macros.
> If you like writing in lisp. :-)
i have been playing around with scheme a bit, but for now i will pass :o)

thank you
anupam
-- 
In the beginning was the lambda, and the lambda was with Emacs, and
Emacs was the lambda.



More information about the erlang-questions mailing list