develooper Front page | perl.perl5.porters | Postings from May 2010

Re: package block syntax

Thread Previous | Thread Next
From:
chromatic
Date:
May 19, 2010 10:20
Subject:
Re: package block syntax
Message ID:
201005191020.20299.chromatic@wgz.org
On Wednesday 19 May 2010 at 10:14, Zefram  wrote:

> I'm neutral on whether the non-nesting nature of "package" should
> be documented.  I think it's clear enough as it is, but pointing out
> implications can be useful.  However, if it is documented, then it
> should be documented as a general feature of "package" (which it is),
> and not specifically linked to the package block syntax (which it is not).

Exactly.  I see it as akin to saying "named subs don't nest". That doesn't 
often occur to novices, but it occurs often enough that many try.

-- c

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