Emit error (or warning?) on ambiguous precedence #85
		Loading…
	
	Add table
		Add a link
		
	
		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+0andy+1as 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.