Metaprogramming
Yariv Sadan
yarivvv@REDACTED
Wed Aug 23 20:03:14 CEST 2006
With Smerl, you have 3 options:
1) strings
2) abstract forms
3) metafunctions (smerl-style)
You can read more about item #3 here:
http://yarivsblog.com/articles/2006/08/19/erlang-metaprogramming-breakthrough-metacurrying
http://yarivsblog.com/articles/2006/08/22/new-smerl-capability-embedding-arbitrary-values-in-place-of-function-parameters
>
> An excellent blog article:
> http://www.cabochon.com/~stevey/blog-rants/digging-into-ruby-symbols.html
>
> Talks about the same thing in Ruby - Ruby has limited metaprogramming
> abilities, mostly turning text strings into functions. Steve (the
> author) talks about why this is less than desirable and how and why a
> fuller metaprogramming model is preferable.
Thanks for the link. I read the whole thing, and it made me feel good
knowing that Erlang (with Smerl) has much better metaprogramming
capabilities than Ruby :)
Also, keep in mind that Smerl is only a couple of weeks old. It's just
getting started ;)
Best,
Yariv
More information about the erlang-questions
mailing list