Open timothee-haudebourg opened 3 years ago
Define a standard option type that translates into the target's native option type.
option
type expr = | let: 'let' IDENT <option <annotation>> '=' <expr> 'in' <expr> type annotation = ':' <type-expr>
In rust that would translate into:
enum Expr { Let(Ident, Option<Annotation>, Box<Expr>, Box<Expr>) }
Define a standard
option
type that translates into the target's nativeoption
type.In rust that would translate into: