my brain has fully formed i cant learn another language come on now
my brain has fully formed i cant learn another language come on now


map Const::A => A over and overA => A is common in any language, I have only seen it in rust
map Const::A => AA => Aimpl BinOp {
pub fn to_str(&self) -> &str {
match self {
BinOp::Add => "+",
BinOp::Sub => "-",
BinOp::Mul => "*",
BinOp::Div => "/",
BinOp::Mod => "%",
BinOp::And => "&&",
BinOp::Or => "||",
BinOp::Eq => "==",
BinOp::BangEq => "!=",
BinOp::Less => "<",
BinOp::LessEq => "<=",
BinOp::Greater => ">",
BinOp::GreaterEq => ">=",
}
}
}