feat: error handling

This commit is contained in:
imxyy1soope1 committed 2025-08-15 23:14:21 +08:00
1 parent a9cfddbf5c
commit fd182b6233
12 files changed
+187 -311

No files matched your search

-2
View File
@@ -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!(""))),
})
}