develooper Front page | perl.perl6.language.objects | Postings from September 2000

Draft RFC: new pragma: C<use namespace>

Thread Next
From:
Piers Cawley
Date:
September 12, 2000 02:50
Subject:
Draft RFC: new pragma: C<use namespace>
Message ID:
m1r96qc5ae.fsf@rt158.private.realtime.co.uk
=head1 TITLE

new pragma: C<use package>

=head1 VERSION

    Maintainer: Piers Cawley <pdcawley@bofh.org.uk>
    Date: 12th September 2000
    Last Modified: 12th September 2000
    Mailing List: perl6-language-objects@perl.org
    Version: 0
    Status: Draft

=head1 ABSTRACT

C<my Big::Long::Prefix::Class $object = Big::Long::Prefix::Class-E<gt>new>
is a pain in the bum to type. We should replace this with 

    use namespace 'Big::Long::Prefix';
    my ::Class $object = ::Class->new;

=head1 DESCRIPTION

There's not that much I can add to the Abstract at the moment, beyond
pointing you all at the p5p thread where I lifted the idea from.

=head1 IMPLEMENTATION

Check out the p5p discussions on C<use namespace>. There's already a
patch against the current perl 5 code to do this.


=head1 REFERENCES

The p5p thread 'RFE: use namespace Foo::Blarg', starting with Alan
Burlison (originator of the idea)'s message
<3965EFEC.7BDF2894@uk.sun.com>.

The p5p thread 
'[PATCH perl-current] 'use namespace' requires testing', starting
at message <396E0C4D.3BECD01F@uk.sun.com>, again from Alan Burlison
which looks at the actual patch.

RFC 171: my Dog $spot should call a constructor implicitly

I believe that the issues brought up in RFC 171 are addressed equally
effectively by this RFC, leaving the way clear for my other RFC
suggesting that we leave C<my Dog $spot> pretty much alone.

-- 
Piers


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