[plt-scheme] match-lambda and source location

From: Jakub Piotr Cłapa (jpc-ml at zenburn.net)
Date: Fri Jan 2 18:54:53 EST 2009

match-lambda creates a lambda without overriding syntax information. 
This greatly reduces the information content in stack traces.

OTOH overriding the source information for the lambda keyword greatly 
reduces the clarity of the macro code...

An idea: (WARNING: may be stupid ;)
Maybe the stack trace should not trace the real stack at all? It could 
get new marks every time the source location barier is crossed (so the 
lambda is reported as a part of match-lambda macro definition source but 
the expression in its body is also mentioned). It could also track tail 
calls in a length limited list (forgetting older "stack" frames).

Jakub Piotr Cłapa

Posted on the users mailing list.