Replies: 2 comments
-
|
With the "obvious" solution (report an error for every mismatching type in a binary expression), I was running into issues when comparing ints and floats (which is perfectly valid). I'll need to see if I can come up with something nicer here. Adding a lot of special cases doesn't seem ideal to me. Type checking is implemented on a graph instead of an AST, so translating that back to helpful error messages isn't simple either. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Would it be realistic to implement a warning when a binary operation in .moor file is applied to values having different types?
For example,
or
Beta Was this translation helpful? Give feedback.
All reactions