mighty-gerbils / gerbil

Gerbil Scheme
https://cons.io
GNU Lesser General Public License v2.1
1.14k stars 112 forks source link

Automate source location in errors #1059

Closed fare closed 2 months ago

fare commented 8 months ago

After this Twitter thread https://twitter.com/jimmykoppel/status/1729590990938480678 I'm convinced we should remove the explicit origin / context / where argument from all error functions/macros, and instead always automatically use some syntactic context—possibly using a syntax parameter so it just works by default in arbitrarily nested macros without effort.

vyzo commented 2 months ago

this is done with the raise macros.