[Haskell-cafe] Can I determin the function name passed in?

Vincenzo Ciancia vincenzo_mlRE.MOVE at yahoo.it
Thu Oct 7 08:32:05 EDT 2004


On Thursday 07 October 2004 12:20, Keith Wansbrough wrote:
> You can't do this in Haskell.  In Haskell, functions are very
> lightweight things, and often they are inlined or compiled away in
> some way leaving no trace at runtime.  So there's nothing to reflect
> on.  This is in contrast to a language like Java, where each object
> has quite a lot of identity and state, and a large heap footprint.

Would perhaps template haskell help? 

http://www.haskell.org/hawiki/TemplateHaskell

V.

-- 
First they ignore you, then they laugh at you,
then they fight you, then you win.
[Gandhi]



More information about the Haskell-Cafe mailing list