let a = 10; a + a;
can be represented like:
IR {
nodes: [
VarDecl {
id: Id(1), // dis id is uniquely generated
type_: Type::U8,
name: "a"
},
Expr {
op: Add,
lhs: Id(1), // references the thing above
rhs: Id(1),
},
]
}
Which option do you think is better? :plet a = 10; a + a;
can be represented like:
IR {
nodes: [
VarDecl {
id: Id(1), // dis id is uniquely generated
type_: Type::U8,
name: "a"
},
Expr {
op: Add,
lhs: Id(1), // references the thing above
rhs: Id(1),
},
]
}
Which option do you think is better? :p virt-manager
is works pretty nice