I don't quite understand the structure of ExprKind.
- why do I need
ExprKind<E = Expr>, can E be any other structure?
- why not use wrap type
Number directly.
- Can other fields be added? eg.
NumbericArray, Association
I mean something like this:
pub enum ExprKind {
Number(Number),
String(String),
Symbol(Symbol),
Normal(Normal),
NumbericArray(NumbericArray),
Association(Association),
}
I don't quite understand the structure of ExprKind.
ExprKind<E = Expr>, canEbe any other structure?Numberdirectly.NumbericArray,AssociationI mean something like this: