A
Anno Siegel
? the Platypus {aka David Formosa} said:[...]
Well, I guess I can live with it too. Especially since I had never
even noticed up until now! However, out of curiosity: do you think
that it "ought" to be allowed, hypothetically speaking?
It ought to work if we expected orthogonal design: Never mind what kind
of block, "use" and "no" can go into it. But this is Perl...
I don't think this is fair, perl brakes orthogonality when
orthogonality makes things harder. When orthogonality makes things
easer then orthogonality shouldn't be broken.
That's an ideal. In practice, Perl has broken orthogonality for all
kinds of reasons. Think of the use of filehandles. Very little in
the the mess of rules and exceptions that govern this are actually
to the convenience of the programmer, but to make some things possible
at all in an existing framework. Similarly, I'm happy to be able to
use "use" and "no" in most blocks. Exceptions come with the territory.
Anno