Re: [PHP-DEV] I would like to write an RFC for the addition of an internal keyword

2013-03-01 Thread Michael Morris
My thoughts are that no additional keyword is necessary - allow protected and private to be used in this scopes. A protected element of a namespace can be accessed within that namespace or any sub-namespaces, and a private element would only be visible by code in the same namespace. Hence namespa

Re: [PHP-DEV] I would like to write an RFC for the addition of an internal keyword

2013-03-01 Thread Julien Pauli
On Thu, Feb 28, 2013 at 12:40 PM, Lazare Inepologlou wrote: > Hello, > > please read my comment inline... > > 2013/2/28 Sebastian Krebs > > > 2013/2/28 Jens Riisom Schultz > > > > > Hi everyone, > > > > > > (I got "hooked off" this discussion, so I have tried to keep up by > > reading > > > the

Re: [PHP-DEV] I would like to write an RFC for the addition of an internal keyword

2013-02-28 Thread Jens Riisom Schultz
> Setting aside difficulty of implementation, I'm coming around to the idea, > though I think you could simplify it by cordoning off an entire namespace. > E.g.: > > A namespace at least two deep (e.g. \A\B\) may be marked 'protected' (by some > method TBD). Classes and functions declared in a

Re: [PHP-DEV] I would like to write an RFC for the addition of an internal keyword

2013-02-28 Thread Jens Riisom Schultz
On Feb 28, 2013, at 5:59 PM, Fabian Becker wrote: > Hi Jens, > I see two problems with your proposal: > > > "For example the following class, "namespace Framework; internal class > > Something {}", would only be visible from within the "Framework" namespace." > > What about classes in a sub-n

Re: [PHP-DEV] I would like to write an RFC for the addition of an internal keyword

2013-02-28 Thread Steve Clay
Setting aside difficulty of implementation, I'm coming around to the idea, though I think you could simplify it by cordoning off an entire namespace. E.g.: A namespace at least two deep (e.g. \A\B\) may be marked 'protected' (by some method TBD). Classes and functions declared in a protected na

Re: Re: [PHP-DEV] I would like to write an RFC for the addition of an internal keyword

2013-02-28 Thread Fabian Becker
Hi Jens, I see two problems with your proposal: > "For example the following class, "namespace Framework; internal class Something {}", would only be visible from within the "Framework" namespace." What about classes in a sub-namespace of Framework? Will classes in \Framework\Foo have access

Re: [PHP-DEV] I would like to write an RFC for the addition of an internal keyword

2013-02-28 Thread Lazare Inepologlou
Hello, please read my comment inline... 2013/2/28 Sebastian Krebs > 2013/2/28 Jens Riisom Schultz > > > Hi everyone, > > > > (I got "hooked off" this discussion, so I have tried to keep up by > reading > > the digest... This makes it impossible for me to correctly interleave my > > comments, s

Re: [PHP-DEV] I would like to write an RFC for the addition of an internal keyword

2013-02-28 Thread Sebastian Krebs
2013/2/28 Jens Riisom Schultz > Hi everyone, > > (I got "hooked off" this discussion, so I have tried to keep up by reading > the digest... This makes it impossible for me to correctly interleave my > comments, so I'll just "top post" or whatever the term is) (I'm sure this > has been mentioned b

Re: [PHP-DEV] I would like to write an RFC for the addition of an internal keyword

2013-02-27 Thread Jens Riisom Schultz
Hi everyone, (I got "hooked off" this discussion, so I have tried to keep up by reading the digest... This makes it impossible for me to correctly interleave my comments, so I'll just "top post" or whatever the term is) (I'm sure this has been mentioned before but a forum would be so much more

Re: [PHP-DEV] I would like to write an RFC for the addition of an internal keyword

2013-02-27 Thread Steve Clay
On 2/27/13 10:22 AM, Sebastian Krebs wrote: 2013/2/27 Steve Clay phpDoc already supports "@access private" for items to be left out of public documentation. An IDE could be configured to have these items appear greyed or not to appear in autocomplete lists. a) You misuse the "private visibil

Re: [PHP-DEV] I would like to write an RFC for the addition of an internal keyword

2013-02-27 Thread Sebastian Krebs
2013/2/27 Steve Clay > On 2/27/13 3:18 AM, Nikita Nefedov wrote: > >> I, for one, think it should be solved on the IDE side. I used a lot of >> Doctrine's internal >> methods lately and if they would be not accessible I wouldn't be able to >> do a lot of things. >> Of course internal methods/clas

Re: [PHP-DEV] I would like to write an RFC for the addition of an internal keyword

2013-02-27 Thread Steve Clay
On 2/27/13 3:18 AM, Nikita Nefedov wrote: I, for one, think it should be solved on the IDE side. I used a lot of Doctrine's internal methods lately and if they would be not accessible I wouldn't be able to do a lot of things. Of course internal methods/classes shouldn't be exposed as a part of

Re: [PHP-DEV] I would like to write an RFC for the addition of an internal keyword

2013-02-27 Thread Lazare Inepologlou
Hello, 2013/2/27 Jens Riisom Schultz > Hi, > > I just want to get a feel for whether the following idea would be > instantly rejected (for example I get the feeling that adding keywords is a > big deal): > > Often, when writing frameworks, you need to make public or protected > functionality or

Re: [PHP-DEV] I would like to write an RFC for the addition of an internal keyword

2013-02-27 Thread Sebastian Krebs
2013/2/27 Jens Riisom Schultz > Hi, > > I just want to get a feel for whether the following idea would be > instantly rejected (for example I get the feeling that adding keywords is a > big deal): > > Often, when writing frameworks, you need to make public or protected > functionality or classes

Re: [PHP-DEV] I would like to write an RFC for the addition of an internal keyword

2013-02-27 Thread Nikita Nefedov
On Wed, 27 Feb 2013 11:07:06 +0400, Jens Riisom Schultz wrote: Hi, I just want to get a feel for whether the following idea would be instantly rejected (for example I get the feeling that adding keywords is a big deal): Often, when writing frameworks, you need to make public or protect

[PHP-DEV] I would like to write an RFC for the addition of an internal keyword

2013-02-26 Thread Jens Riisom Schultz
Hi, I just want to get a feel for whether the following idea would be instantly rejected (for example I get the feeling that adding keywords is a big deal): Often, when writing frameworks, you need to make public or protected functionality or classes which should only be called from inside the