better_panics #15
No reviewers
Labels
No Label
accepted
bug
clj
documentation
enhancement
errors
infrastructure
later
next
now
optimization
proposal
question
research
semantics
syntax
ux
vm
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: twc/ludus#15
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "better_panics"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Panic is now a form rather than a function:
panic! {expr}
instead ofpanic! (:msg)
. This allows the interpreter to attach a line number to panics.Also, it doesn't make that much sense for it to be a function, since it stops the world.
Also also, this pull request fully fixes (I think) the bugs in line numbers with error reporting, whereby a panic is looking for a line number in the source of the script being executed, rather than in the script where the panic is found. Tokens now carry
:source
and:input
fields thaterror.cljc
plucks for reporting.