[erlang-questions] Different arity of macroses

Maxim Treskin <>
Wed Jul 1 10:26:43 CEST 2009


Hello

EPP does not handle macroses with different arity as different macroses, but
sometimes it can be a good property.
I.e.:

-define(DBG(F, A), io:format("DBG(~w:~b): " ++ F ++ "~n", [?MODULE, ?LINE]
++ A)).
-define(DBG(F), io:format("DBG(~w:~b): " ++ F ++ "~n", [?MODULE, ?LINE])).

and write ?DBG("Something here") instead of ?DBG("Something here", [])

May be it is appropriated to add this behaviour in EPP?

Thank you.

-- 
Maxim Treskin


More information about the erlang-questions mailing list