Sometimes the order of the Import
s matters a lot (the latest Import
takes precedence if there are conflicts between unqualified names). This makes things very hard to debug. Is there a Warning one can set to detect these situations?
No warning but maybe some good practices:
I also think library authors should provide explicit recommended "export files" that Require Export
all reasonable things in the right order. The canonical example is all_ssreflect
(and friends) in MathComp, and another example is Stdpp's prelude
.
... and users obviously need to know they should use these "export files" whenever possible
Last updated: Oct 13 2024 at 01:02 UTC