develooper Front page | perl.perl6.compiler | Postings from September 2004

Re: Current state?

Thread Previous | Thread Next
From:
Larry Wall
Date:
September 14, 2004 12:43
Subject:
Re: Current state?
Message ID:
20040914194259.GA6410@wall.org
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

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About