feat: error handling
This commit is contained in:
@@ -21,8 +21,6 @@ pub mod builtins {
|
||||
(Int(a), Float(b)) => Float(a as f64 + b),
|
||||
(Float(a), Int(b)) => Float(a + b as f64),
|
||||
(Float(a), Float(b)) => Float(a + b),
|
||||
(a @ Value::Catchable(_), _) => a,
|
||||
(_, b @ Value::Catchable(_)) => b,
|
||||
_ => return Err(Error::EvalError(format!(""))),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user