defimpl Addition, for: Native.Float64, as: -> def add other: Native.Integer64, as: -> as_float = Huia.Primitive.i64_to_f64!(value: other) Huia.Primitive.f64_addition(rhs: self, lhs: as_float) end def add other: Native.Float64, as: -> Huia.Primitive.f64_addition(rhs: self, lhs: other) end def add other: Any, as: -> Result.none() end end