Slide 31
Slide 31 text
No boilerplate, lots of control
#[derive(Debug, PartialEq, Clone)]
pub enum Value {
Nil,
Boolean(bool),
Number(f64),
String(String),
Callable(Callable),
Instance(Instance),
}
The compiler will happily write code for you, as long as you ask it to.
This is based on macros so it's extensible and very flexible.