[erlang-questions] Pattern-matching function?

Robert Virding rvirding@REDACTED
Thu Oct 30 16:17:58 CET 2008


Well of course I would use LFE, but otherwise I agree. :-) And define a
macro defining macro.

Seriously though, using macros or parse_transforms is the only way to get
around the problem of not having patterns or variables as real "things".

Robert

2008/10/30 mats cronqvist <masse@REDACTED>

> "Robert Virding" <rvirding@REDACTED> writes:
>
> > One solution is to use macros as a wrapper around a fun.
>
>   Some people, when confronted with a problem, think
>  "I know, I'll use a macro."
>  Now they have two problems.
>
>  with apologies to jwz.
>
>  mats
>
> p.s. unless you're coding in lisp, of course.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081030/aae72c8d/attachment.htm>


More information about the erlang-questions mailing list