Hi all,

I've read through all the recent threads on the inefficiencies of passing 
functions as arguments and the proposed workarounds with call() in 0.4. I'm 
not quite sure how to use call() to replicate passing a function, however, 
without creating a whole bunch of extra complexity. It seems to me that 
you'd need to create a separate *type* for each function - and then 
abstract any functions that get passed this new type, in which case perhaps 
FastAnonymous is more intuitive. For processes that allow end users to 
specify their own function to use, this becomes a bit problematic because 
instead of telling them to create a *function*, you need to step them 
through creating a *type* and then overloading call() on that type. It's 
more complex, to be sure.

Is FastAnonymous still the best way of efficiently passing functions in 
0.4, or will it be deprecated in favor of the type/call() approach? Have I 
missed a better option?

Reply via email to