feat: error handling

This commit is contained in:
2025-08-08 19:35:51 +08:00
parent a9cfddbf5c
commit fd182b6233
12 changed files with 187 additions and 311 deletions

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!(""))),
})
}