Erlang improvement?

Samuel Tardieu sam@REDACTED
Wed Sep 19 18:26:10 CEST 2001


On 19/09, Kostis Sagonas wrote:

| Instead, we think that the following syntax is a much better way to
| write the above:
| 
| %%===============================================================
| 
| t2(M,F) ->
|   M:F(bar,42).
| 
| %%===============================================================

Let's assume that f(X) returns 'a' and g(Y) returns 'b'.
Does f(X):g(Y) mean a:g(Y) (call g in module a with parameter Y) or the
function object a:b? Isn't there an ambiguity here?




More information about the erlang-questions mailing list