feat: error handling
This commit is contained in:
12 files changed
+187
-311
No files matched your search
@@ -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