Determine evaluation result type without evaluating #501
Replies: 3 comments
-
I think that is impossible because of conditionals ( But I might be wrong here. |
Beta Was this translation helpful? Give feedback.
-
For expressions that have no It could be done externally, using the AST by more or less using the logic in Another (more cleaner) way would require to change the function and operator interfaces, adding a method e.g. |
Beta Was this translation helpful? Give feedback.
-
moved this to the discussion area |
Beta Was this translation helpful? Give feedback.
-
I have a use-case where it would be highly beneficial if there would be a possibility to determine the result type an expression will yield (if executed successfully).
Is this already possible with the existing API? I tried to use the AST API but could not find a way.
Beta Was this translation helpful? Give feedback.
All reactions