Emit error (or warning?) on ambiguous precedence #85
Labels
No labels
bug
c:haku
c:rkgk backend
c:rkgk frontend
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: liquidex/rkgk#85
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
A friend shared this example, where haku will misinterpret your intentions because parsers are dumb:
Here my friend meant to pass
x+0
andy+1
as arguments, but haku will interpret the expression asWhich is not at all what he wanted.
I'm not quite sure whether this should be an error or a warning; I'd lean towards always erroring in case function call infix is mixed with operator infix, because it can be really confusing, but arguably it shouldn't prevent compilation.
Emitting a non compilation-failing warning is definitely going to be more work, since right now we expect all diagnostics to be fatal.