-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Labels
compiler:loweringSyntax lowering (compiler front end, 2nd stage)Syntax lowering (compiler front end, 2nd stage)featureIndicates new feature / enhancement requestsIndicates new feature / enhancement requests
Description
It could be useful for debugging to be able to easily get the names and values of all variables in scope, e.g. so you don't have to manually write them all in a call to @show
. This could be provided as a macro @locals
(though needs to be implemented specially in lowering, since the set of variables in scope is not available during macro expansion), returning a dictionary, similar to locals()
in python: https://docs.python.org/3/library/functions.html#locals
Thoughts?
StefanKarpinski, yurivish, timholy, dalum, septcolor and 1 moreKenovchuravy, dalum, AzamatB and 00vareladavid
Metadata
Metadata
Assignees
Labels
compiler:loweringSyntax lowering (compiler front end, 2nd stage)Syntax lowering (compiler front end, 2nd stage)featureIndicates new feature / enhancement requestsIndicates new feature / enhancement requests