Skip to content

yash-arith-0.2.0

Compare
Choose a tag to compare
@magicant magicant released this 10 Sep 03:26
· 971 commits to master since this release
yash-arith-0.2.0

[0.2.0] - 2023-09-10

Added

  • TokenError, SyntaxError, EvalError, ErrorCause, and Error now implement std::error::Error.

Changed

  • Variable access is now fallible.
    • Added associated type GetVariableError to Env.
    • Changed the return type of Env::get_variable from Option<&str> to Result<Option<&str>, GetVariableError>.
    • Error, EvalError and ErrorCause now take two type parameters, the first of which is for GetVariableError.
    • Changed the return type of eval from Result<Value, Error<E::AssignVariableError>> to Result<Value, Error<E::GetVariableError, E::AssignVariableError>>.
  • Internal dependency versions
    • thiserror 1.0.43 → 1.0.47