> use strict 'recursive';

If this is not yet done and is deemed a good idea, I'd add that it
seems to me to be equally applicable to perl 5.

Further, considering the more general

    [pragma] 'recursive';

I can imagine pragma adverbs / attributes.

I searched p5p and p6all for things like "pragma attributes" (and
"recursive pragma") and didn't find anything relevant. It would seem
natural (if not already going to be valid in p6) to allow something
like:

    use foo :bar :quux;

which clearly echoes:

    use foo qw( :bar :quux );

Perhaps pragma attributes could be used to make some common
cases and highly visible uses of qw() rather prettier. Perhaps not.

Regardless of the latter point, I could imagine:

    :recursive
    :excl
    :incl
    etc.

I could further imagine a metapragma that makes these attributes
available and used:

    use pragma 'adverbs';

Or maybe this functionality is added to:

    use attributes;

I have no idea if any of this stuff would need to be in the perl
compiler core.

I can see a generic recursive pragma attribute being problematic
if used anywhere but the file fed to perl, because then it becomes
rather difficult to tell which pragma are in effect when looking at
some source. (Otoh, for plain use strict, this seems pretty irrelevant.)

Reply via email to