Newsgroups: perl.perl6.language
From: la...@wall.org (Larry Wall)
Date: Tue, 9 Nov 2004 16:01:06 -0800
Local: Tues, Nov 9 2004 7:01 pm
Subject: Re: S11 - Modules and export
On Tue, Nov 09, 2004 at 05:20:50PM -0500, Aaron Sherman wrote: : I'm still troubled by the export trait as I read S11. I like not having : to write a new subroutine in a procedural module and THEN go back up and : edit @EXPORT. That's good. : : But, it seems to me that: : : module MyHTML { : # Wherein I pretend to have written an HTML module : # but really just re-brand Perl5ish CGI.pm : use CGI :html4; : sub hr(...) is export; : sub p(...) is export; : ... : } : : is a lot of work to go through, and it also requires that I correctly : reproduce the prototypes (although if "..." worked as I have it above, : then that would not be a concern). The glib answer is that maybe some kinds of things should be hard. The deeper answer is that you mustn't get confused by the fact that : Can "is export" be applied to use? In other words: Probably not with that exact syntax, since you can't mix ":" and "is" : Also, for those cases where you're writing a very large number of It's my job to pick the right default. It's not my job to make that Larry You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||