http://qs321.pair.com?node_id=495668


in reply to Namespaces contiguous in the entirety

do other people see value in such a constraint?

Personally no.

I regularly have multiple packages in a single file and don't see it as a problem. If the package is small, and isn't part of a public API, then splitting it out to a separate file is often a waste of time.

Package declarations are lexically scoped for a reason :-)

Have multiple package declarations caused you problems in the past?

Update: Bah. Ignore me. Misread the original node.

I'd still ask whether multiple declarations of the same package have been causing problems? Personally I cannot recall an instance of this causing problems so would question the utility of such warnings.