Proposed change to libraries

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Proposed change to libraries

Fredrik Linder-2
> From: Luke Gorrie
>
> "Fredrik Linder" <fredrik.linder> writes:
>
> > Yes, it is used in (older parts of) our software at CellPoint.
>
> [...]
>
> > >   callback(Values, Callback = {M,F}) when list(Values) ->
> > >       apply(M, F, Values).
>
> but if I had thought a bit harder I'd have realised that this is just
> an apply/3 and not really related to the tuple-function business.
> That would have to be something like
>
>   CB = {mod,fun},
>   if ... -> CB();
>      ... -> CB(Arg)
>   end
>
> which looks a bit more exotic.

Well, I did the same mistake. But the reply is the same - it is in use (but I'd change it to the fun M:F/A syntax as soon as it's there).

/Fredrik