[erlang-questions] Adding new operators?
Sat Apr 13 21:44:10 CEST 2013
On Wed, Apr 10, 2013 at 12:31 PM, Anthony Ramine <n.oxyde@REDACTED> wrote:
> For example he could write a parse transform for a parallel send operator
> like this:
> +[Pids/parallel] ! Message.
> This is beyond ugly but at least it's quite obvious that some spooky
> action at the distance is going on.
This isn't as ugly as one might think.. Say
erl_scan:string(" Pids @! Message ").
erl_scan:string(" Pids #! Message ").
these I can transform into something reasonable ... and @! as parallel
array send and #! and parallel hash send have a sort of Perlish beauty to
AFAICT neither @! nor #! mean anything in existing erlang code as both are
syntax errors (which in this case is a good thing).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions