user-defined operators
Eric Newhuis
enewhuis@REDACTED
Fri Mar 26 23:18:21 CET 2004
This is orthogonal to user-defined operators.
One can already define confusing function names. Consider:
dbg:ctpg(gq, x, 1) is no less confusing than {gq, x, 1} `@#` Blah.
> How about this?
>
> N `@#` Primes
> Seconds `@#` 60
> MoreSeconds `@#` (Seconds `@#` String `@#` String2)
>
> I want my `operator` to be defined as such.
>
> '@#'(A, B) when is_integer(A), is_list(B) -> ...
> '@#'(A, B) when is_integer(A), is_integer(B) -> ...
> '@#'(A, B) when is_list(A), is_list(B) -> ...
More information about the erlang-questions
mailing list