Middlware/interceptor for compat checker #198
emil14
started this conversation in
Type System
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's
f1
takesf32
. Why can't we passf64
with implicit cast? The reason is, among other possible issues, is how compatibility checker is implemented. Giving two base types likef32
andf64
it will simply compare their names and conclude that they are not the same. But the case we are talking about is specific (even thought the same happen with int, uint, (complex?) numbers). Possible solution is to introduce some sort of hook that could be used in way of "call me before make the decision".Another problem of that could be the problem of actual type-casting. Is must be done via FBP componentns and it's not clear how to introduce such trick.
Beta Was this translation helpful? Give feedback.
All reactions