Proposed change to libraries

Fredrik Linder <>
Wed Feb 23 09:20:56 CET 2005


Yes, it is used in (older parts of) our software at CellPoint.

/Fredrik

> -----Original Message-----
> From: 
> [mailto:]On Behalf Of Luke Gorrie
> Sent: den 22 februari 2005 20:40
> To: 
> Subject: Re: Proposed change to libraries
> 
> 
> Bjorn Gustavsson <> writes:
> 
> > Unfortunately, it is tricky to check that {M,F} is a valid 
> fun. The module
> > M might not even be loaded.
> > 
> > It has been suggested earlier that we should add
> > 
> >         fun M:F/Arity
> > 
> > to the language. Unfortunately, we didn't add it in R10B. 
> We could add
> > it in R11B.
> 
> I think it would be nice if this prints as something like:
> 
>   #Fun<M:F/Arity>
> 
> so that you can easily see where it's pointing.
> 
> I also wonder if people are using {M,F}-funs without fixed arity.
> toy example:
> 
>   callback(Values, Callback = {M,F}) when list(Values) ->
>       apply(M, F, Values).
> 
> Cheers,
> Luke
> 
> 
> 



More information about the erlang-questions mailing list