Re: [PHP-DEV] __construct is like a normal method but without E_STRICT

2013-10-02 Thread Seva Lapsha
> > Am I the only one thinking this, is there actually someone who is using > > __construct as re-initialising method? > > > php doesn't invoke the parent's constructor from the subclass if the > subclass also have a constructor, so in that case calling > parent::__construct() manually is your only

Re: [PHP-DEV] Wake up

2013-09-12 Thread Seva Lapsha
Authorities don't run away. On Thu, Sep 12, 2013 at 3:25 AM, Pascal Chevrel wrote: > e 12/09/2013 07:40, Daniel Brown a écrit : > > On Thu, Sep 12, 2013 at 12:10 AM, Seva Lapsha >> wrote: >> >>> PHP is a collective mind. Any dictatorship would mean a degra

Re: [PHP-DEV] Wake up

2013-09-11 Thread Seva Lapsha
PHP is a collective mind. Any dictatorship would mean a degradation for it. If you don't like how it's managed, there is an easy path: 1. Earn authority. 2. Propose a change. 3. Implement it. 4. Maintain it. Start with 1. On Wed, Sep 11, 2013 at 6:44 AM, Florin Patan wrote: > Good day intern

Re: [PHP-DEV] RFC: Protocol Type Hinting

2013-06-26 Thread Seva Lapsha
Hi, As I see it, adapters not only serve declaration purpose, they also can adapt the method and param names and even alter or tune the execution flow. Imagine this simple case: You have a protocol Duck with method walk() with few concrete implementations. Later you have another instance of Duck

Re: [PHP-DEV] Continued try blocks

2013-05-07 Thread Seva Lapsha
The feature exists in Python: http://stackoverflow.com/questions/574730/python-how-to-ignore-an-exception-and-proceed, in Ruby: http://stackoverflow.com/questions/5089802/which-is-the-shortest-way-to-silently-ignore-a-ruby-exception. Just saying. On Wed, May 1, 2013 at 4:46 AM, Patrick ALLAERT w

Re: [PHP-DEV] property de-referencing

2013-05-07 Thread Seva Lapsha
p struggling for better server-side form handling and start > moving towards fully client-side UI... > > (sorry if I'm going off on a tangent here - just sharing some of the > thoughts that lead me down this path to begin with...) > > > On Tue, May 7, 2013 at 9:41 AM, Seva

Re: [PHP-DEV] property de-referencing

2013-05-07 Thread Seva Lapsha
; > > On Mon, May 6, 2013 at 1:12 PM, Seva Lapsha wrote: > >> BTW, I didn't propose to wrap any use of a property reference into a meta >> object, in this case a certain distinguishable string format could >> represent it with no extra handling. >> &g

Re: [PHP-DEV] property de-referencing

2013-05-06 Thread Seva Lapsha
eference and User. > > As opposed to ^$user->name which contains the minimum amount of required > information - the object and property-name, nothing else. > > > On Mon, May 6, 2013 at 12:08 PM, Seva Lapsha wrote: > >> Hi Rasmus, >> >> I agree with you that stri

Re: [PHP-DEV] property de-referencing

2013-05-06 Thread Seva Lapsha
to both PropertyReference and User. > > As opposed to ^$user->name which contains the minimum amount of required > information - the object and property-name, nothing else. > > > On Mon, May 6, 2013 at 12:08 PM, Seva Lapsha wrote: > >> Hi Rasmus, >> >> I agr

Re: [PHP-DEV] property de-referencing

2013-05-06 Thread Seva Lapsha
Hi Rasmus, I agree with you that strings are not the best way to refer to an element sometimes. However, to me your Symfony2 example only demonstrates the flaw of the component's design decision, not the limitation of the language. Sometimes developers (not just Symfony, but other frameworks too)

Re: [PHP-DEV] I think that "Function naming inconsistency" bug deservers more attention

2013-01-25 Thread Seva Lapsha
On Fri, Jan 25, 2013 at 2:04 PM, Rasmus Lerdorf wrote: > On 01/25/2013 10:55 AM, Seva Lapsha wrote: > > Well, how about renaming the functions, create aliases for BC and throw > > E_DEPRECATED or E_STRICT on their usage? And write a PEAR script bundled > > with the distribut

Re: [PHP-DEV] I think that "Function naming inconsistency" bug deservers more attention

2013-01-25 Thread Seva Lapsha
Well, how about renaming the functions, create aliases for BC and throw E_DEPRECATED or E_STRICT on their usage? And write a PEAR script bundled with the distribution to migrate to the new convention? On Fri, Jan 25, 2013 at 1:41 PM, Stas Malyshev wrote: > Hi! > > > I've seen discussion on reddi

Re: [PHP-DEV] [RFC] Custom Casting

2012-05-14 Thread Seva Lapsha
Please read my previous comment. On Mon, May 14, 2012 at 3:31 PM, Clint Priest wrote: > How would one use your Castable interface to cast a Class “Test” to any > of integer, array or boolean? > > ** ** > > *From:* Seva Lapsha [mailto:seva.lap...@gmail.com] > *Sent:* Mo

Re: [PHP-DEV] [RFC] Custom Casting

2012-05-14 Thread Seva Lapsha
Thanks. On Mon, May 14, 2012 at 2:28 PM, Stas Malyshev wrote: > Hi! > > > Not quite. The proposed is a syntactic sugar which is thought to handle > > any transformation of a value, not necessarily or limited to type or > > class conversion. It is of course possible to limit the usage to just > >

Re: [PHP-DEV] [RFC] Custom Casting

2012-05-14 Thread Seva Lapsha
etc, so that the language > > can request the type it needs to cast to. > > > > > -Original Message- > > > From: Seva Lapsha [mailto:seva.lap...@gmail.com] > > > Sent: Wednesday, May 09, 2012 4:56 PM > > > To: internals@lists.php.net >

Re: [PHP-DEV] [RFC] Custom Casting

2012-05-14 Thread Seva Lapsha
Hi, Not quite. The proposed is a syntactic sugar which is thought to handle any transformation of a value, not necessarily or limited to type or class conversion. It is of course possible to limit the usage to just that, with any user defined convention or "best practice". In fact it's pretty dist

Re: [PHP-DEV] [RFC] Custom Casting

2012-05-14 Thread Seva Lapsha
it is cast to, > which is why the __toInt(), __toArray(), etc, so that the language can > request the type it needs to cast to. > > > -Original Message- > > From: Seva Lapsha [mailto:seva.lap...@gmail.com] > > Sent: Wednesday, May 09, 2012 4:56 PM > > To: in

[PHP-DEV] [RFC] Custom Casting

2012-05-09 Thread Seva Lapsha
t/rfc/object_cast_to_types https://wiki.php.net/rfc/class_casting_to_scalar Thank you in advance, Seva Lapsha On Wed, Apr 11, 2012 at 6:14 PM, Yasuo Ohgaki wrote: > Hi all, > > I think my RFC confused people on this list due to improper descriptions > and too much information. Sorry for the confusi

Re: [PHP-DEV] RFC: Making T_FUNCTION optional in method declarations

2010-11-28 Thread Seva Lapsha
-1 May harm code portability and maintainability, allows intended or accidental fluctuations in code consistence. On Sun, Nov 28, 2010 at 6:10 PM, Tjerk Meesters wrote: > -1 > > The nuisance of updating IDE, search tools etc doesn't outweigh typing 9 > characters less imho. > On Nov 28, 2010 11: