Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Namespaces contiguous in the entirety

by TimToady (Parson)
on Sep 28, 2005 at 17:01 UTC ( [id://495837]=note: print w/replies, xml ) Need Help??


in reply to Namespaces contiguous in the entirety

We see enough value in the constraint that, by default, Perl 6 will warn on namespace reentry. However, recognizing that reopening namespaces is useful, we'll make it really easy to suppress that warning by adding some trait to the declaration of the package or module or class to express the intent of reopening or redefining. "is also" and "is instead" might work.
  • Comment on Re: Namespaces contiguous in the entirety

Replies are listed 'Best First'.
Re^2: Namespaces contiguous in the entirety
by tye (Sage) on Sep 29, 2005 at 03:01 UTC

    {use strict "package"}++. Symbolic references to packages are problematic. Just avoid them?

    - tye        

Re^2: Namespaces contiguous in the entirety
by rir (Vicar) on Sep 28, 2005 at 21:12 UTC
    Just to be sure we mean the same thing. This syntax describes what I am trying to achieve:
    package this_package can not be reentered;
    Your is also or is instead seems to indicate creating aliases for a namespace. I like that idea a lot--in a few languages I wished I could simply capture intention during prototyping by:
    class ID_NUMBER is INT;
    and settle details later.

    Be well,
    rir

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://495837]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-25 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found