user-defined operators

Thomas Lindgren <>
Thu Mar 25 22:00:34 CET 2004


--- Shawn Pearce <> wrote:
> Ulf Wiger <> wrote:
> > So is your suggestion that one would write e.g.
> > 
> >   -import(sys, ['!!'/2,]).
> > 
> >   fetch(Host, File) ->
> >      Host `!!` {get, File}.
> 
> Bleh!
> 
> 	spearce `wontuse` backticks_for_operators.
> 
> Are we trying to become Perl here or something?  :-)

Heh, no ... I just reused Haskell's notation. As long
as the operator name is clearly delimited, it's fine
by me.

As to adding prefix operators: I think it would be
feasible. The main thing would be to mark it clearly
and give it an obvious, fixed precedence.

Best,
Thomas


__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html



More information about the erlang-questions mailing list