Reimplement assert
macro
#41
Labels
api
Relates to the API design
enhancement
An improvement to existing functionality
severe
Has a significant impact on many users
The
assert
macro's implementation requires it to attempt to pattern match on equality predicates. But equality predicates involving primitive types seem to have different AST representations so that a single case can't match all of them, and in the code, the pattern is duplicated dozens of times. This code is ugly, and difficult to maintain.The text was updated successfully, but these errors were encountered: