-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Le #147] Names of functions defined in let are getting lost #57
Comments
When an anonymous function is on the call stack, it takes the form |
Stack trace sample, showing both the filtered trace, and the relevant section of the unfiltered trace:
The function was |
Note that if the function name is defined in a destructured way, the name is lost entirely. These behave totally independently:
|
Repeated function names don't change the behavior in any interesting way:
|
When the function defined in the
|
Similarly, anonymous functions are shown as having the name of the function they're called within:
The functions used above, for reference:
|
(let [myNeg (fn [x] (neg? x))] (myNeg "test"))
lists the error as occurring within an anonymous function on the stack trace. Viewing the stack trace directly shows that the function on the stack is called as "myNeg__1172". Is it possible to determine if a dynamically assigned function has a "real" name, and if so, retrieve it?The text was updated successfully, but these errors were encountered: