mirror of https://github.com/tbklang/tlang.git
Replace assertions with proper error handling on errors #97
Labels
No Label
dependency
emit
hashmapper
lebanonmapper
lexer
meta
needsfix
parser
qol
question
resolution
typing
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
Dependencies
No dependencies set.
Reference: tlang/tlang#97
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
What is this?
When typechecking we sometimes do:
However, that should throw a typechecker error rather and not an assertion which is for debugging purposes and would not be compiled in a release build anyways.
Todo list
compiler/typecheck/core.d
assert()
s and replacing them with some kind-ofTypecheckException
I have started work on this on the
literal_encodings
branch - starting with typecheckingA lot of this has been done on the type check branch but still more to be done
I have added some more replacements to the
assert(false)
s withTypeCheckerException
s now.