I like this very much.  If there's a parse transform .hrl that will do this, I will use it today.<div><br></div><div>I also have a need for "topic-oriented programming".  A work around that I almost went with was...</div>
<div><br></div><div><br></div><div>big_ugly_f({get_com, #tree ...}) -> ...<br>big_ugly_f({set_com, #tree ...}) -> ...</div><div><br>big_ugly_f({get_com, #wrapper ...}) -> ...<br>big_ugly_f({set_com, #wrapper ...}) -> ...<br>
<div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">... but I just couldn't go through with it in the end.</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br>
</div><div class="gmail_quote">Dan.</div><div class="gmail_quote"><br></div><div class="gmail_quote">On Fri, May 27, 2011 at 2:51 AM,  <span dir="ltr"><<a href="mailto:ok@cs.otago.ac.nz">ok@cs.otago.ac.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Amongst other things,<br>
f(...) -> ...;<br>
-if(...).<br>
f(...) -> ...;<br>
-endif.<br>
f(...) -> ... .<br>
does not work.  By stealing an idea from Grandfather Prolog,<br>
we can fix that.<br>
<br>
<br>_______________________________________________<br>
eeps mailing list<br>
<a href="mailto:eeps@erlang.org">eeps@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/eeps" target="_blank">http://erlang.org/mailman/listinfo/eeps</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Daniel Goertzen<br>-----------------<br><a href="mailto:dang@networkintegritysystems.com">dang@networkintegritysystems.com</a> (work)<br><a href="mailto:daniel.goertzen@gmail.com">daniel.goertzen@gmail.com</a> (home)<br>
-----------------<br>1 204 272 6149 (home/office)<br>1 204 470 8360 (mobile)<br>-----------------<br><br><br><br>
</div>