<br><br><div class="gmail_quote">On Wed, Apr 10, 2013 at 12:31 PM, Anthony Ramine <span dir="ltr"><<a href="mailto:n.oxyde@gmail.com" target="_blank">n.oxyde@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
For example he could write a parse transform for a parallel send operator like this:<br>
<br>
        +[Pids/parallel] ! Message.<br>
<br>
This is beyond ugly but at least it's quite obvious that some spooky action at the distance is going on.<br></blockquote><div><br></div><div>This isn't as ugly as one might think.. Say</div><div><br></div><div>erl_scan:string(" Pids @! Message ").</div>
<div><br></div><div>yields</div><div><br></div><div>{ok,[{var,1,'Pids'},{'@',1},{'!',1},{var,1,'Message'}],1}</div><div><br></div><div>and</div><div><br></div><div>erl_scan:string(" Pids #! Message ").</div>
<div><br></div><div>yields</div><div><br></div><div>{ok,[{var,1,'Pids'},{'#',1},{'!',1},{var,1,'Message'}],1}</div><div><br></div><div>these I can transform into something reasonable ... and @! as parallel array send and #! and parallel hash send have a sort of Perlish beauty to them :)</div>
<div><br></div><div>AFAICT neither @! nor #! mean anything in existing erlang code as both are syntax errors (which in this case is a good thing).</div><div><br></div><div>Dave </div><div><br></div><div> </div></div>-=-=-=-=-=-=-=-=-=-=- <a href="http://blog.dloh.org/">http://blog.dloh.org/</a>