News for hackers. Stuff that matters.
Re:Why I prefer scheme to Haskell by tibbe on Monday April 09, 2012 @02:42PM (#3818524)
I usually use `trace` like so:

    f _ _ _ | trace "print something profound" False = undefined
    f normal arguments here = ...
That way the trace output will be printed whenever the function is evaluated, which typically mimics a lexical call stack unless you use laziness in some particularly interesting way.

There are no comments on this comment yet.