Shinmera / dissect

Common Lisp introspection library for the call stack and restarts
https://shinmera.github.io/dissect/
zlib License
44 stars 11 forks source link

Improve function name printing in clasp backtraces #13

Closed drmeister closed 3 years ago

drmeister commented 3 years ago

Previously it printed (# ...args...) Now it prints (FOO ...args...)

Bike commented 3 years ago

some more context - when i wrote the dissect backend for clasp, I figured it would be preferable to get the actual function object when available, and use the name otherwise. Dissect's printer, however, just uses the object directly, which results in backtrace frames starting with (#<FUNCTION whatever> ...) as seen e.g. here https://usercontent.irccloud-cdn.com/file/YSRA6blP/image.png, which is kind of ugly. drmeister's patch doesn't affect the printer, but makes it preferable to keep the name rather than the function.

Shinmera commented 3 years ago

Thanks!