You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parsing: Note that the challenge is that cast expressions require that we be able to also parse host types, rather than just binary types. We could start off hard-coding the base types to avoid issues regarding variable capture and environments.
Type checking: We'll have to check that the input and output types are numeric
Lowering to IR: We'll need to add another variant to the Expr type
Lowering to Rust: This should be relatively simple - just use as in Rust. Might be harder to maintain consistent semantics across other languages though. 🤔
The text was updated successfully, but these errors were encountered:
Host expressions should have include a cast expression to allow for explicit casts between numeric types. These should be in the form:
Example:
Expr
typeas
in Rust. Might be harder to maintain consistent semantics across other languages though. 🤔The text was updated successfully, but these errors were encountered: