user-defined operators
Eric Newhuis
enewhuis@REDACTED
Fri Mar 26 00:06:06 CET 2004
> It does not seem to me that
> n `elem` primes
> seconds `div` 60
> fromInteger big `asTypeOf` x
> expr `catch` handler
> are particularly hard to read.
Yes! This is beautiful, semantically rich, and poetic. These are the
things that drive re-understanding of code written by groups of
developers. I would LOVE to see this capability in Erlang.
If I was really concerned about it I could then define my dyadic `each`
and do:
F `each` [ItemsX, ItemsY].
...where F is a function of two variables.
More information about the erlang-questions
mailing list