On Tue, Sep 14, 2004 at 08:13:13PM +0200, James Mastros wrote:
: Of course, this is really language design -- Larry, you listening?

Sure, I'm listening, but what's the point when I agree with everyone.  :-)

I agree that the default should be the current outer language.

I agree that the default ought to be overridable.

I agree that the right way to do that is with something like "use PIR;"
rather than inventing an inconsistent syntax.

On the other hand, I don't think any such declaration belongs in the
closures themselves.  Can you imagine how many "use Mumbles" you're
talking about?  I think the file as a whole should have some way of
declaring what the language of its closures should be.  In Perl terms,
it's a file-scoped pragma.  If your regexen are embedded in some
other kind of file, it needs something like a pragma to declare that.
But in Perl 6, it'll probably be

    use rx :deflang«PIR»

or some such.

Larry

Reply via email to