Open lkastner opened 1 week ago
Some background: In the cases with an error printed, the types of both arguments are equal, but the parents are not.
In the other cases, the types are not equal and thus julia delegated ==
to ===
.
Let's discuss the possible fix in https://github.com/Nemocas/AbstractAlgebra.jl/pull/1800 in triage.
It seems that there are cases where we would want an error rather than false when the parents are not ===
. So maybe this inconsistency is hard to avoid. After discussing in triage, no conclusion on proper behavior was reached.
arguably, always throwing an error might be preferable.
Describe the bug When comparing polynomials from different rings I get inconsistent behaviour. Sometimes I just get
false
and sometimes an error.To Reproduce
Expected behavior We have many places where we first compare the "surrounding space" before comparing the actual objects. So I would expect an error to get thrown. E.g. try
Additional context Maybe this needs a styleguide entry, I actually did not look it up.