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 option

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 pascal.chev...@free.frwrote: e 12/09/2013 07:40, Daniel Brown a écrit : On Thu, Sep 12, 2013 at 12:10 AM, Seva Lapsha seva.lap...@gmail.com wrote: PHP is a collective mind. Any dictatorship would mean

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 florinpa...@gmail.com

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

Re: [PHP-DEV] property de-referencing

2013-05-07 Thread Seva Lapsha
... On Mon, May 6, 2013 at 1:12 PM, Seva Lapsha seva.lap...@gmail.com 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. On Mon, May 6, 2013 at 12:44 PM, Rasmus

Re: [PHP-DEV] property de-referencing

2013-05-07 Thread Seva Lapsha
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 Lapsha seva.lap...@gmail.com wrote: Good developers research and find *best* ways to use the available tools

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

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] property de-referencing

2013-05-06 Thread Seva Lapsha
and property-name, nothing else. On Mon, May 6, 2013 at 12:08 PM, Seva Lapsha seva.lap...@gmail.comwrote: 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

Re: [PHP-DEV] property de-referencing

2013-05-06 Thread Seva Lapsha
, nothing else. On Mon, May 6, 2013 at 12:08 PM, Seva Lapsha seva.lap...@gmail.comwrote: 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

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 smalys...@sugarcrm.comwrote: Hi! I've seen

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 ras...@lerdorf.com 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 distribution

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

2012-05-14 Thread Seva Lapsha
to determine the type 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: internals@lists.php.net Subject

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

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

2012-05-14 Thread Seva Lapsha
- From: Seva Lapsha [mailto:seva.lap...@gmail.com] Sent: Monday, May 14, 2012 6:18 AM To: Clint Priest Cc: internals@lists.php.net Subject: Re: [PHP-DEV] [RFC] Custom Casting Sorry, I comprehend neither the cause nor the effect in your argument statement. Can you please elaborate? On Sun, May

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

2012-05-14 Thread Seva Lapsha
Thanks. On Mon, May 14, 2012 at 2:28 PM, Stas Malyshev smalys...@sugarcrm.comwrote: 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

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 cpri...@zerocue.com 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:* Monday, May

[PHP-DEV] [RFC] Custom Casting

2012-05-09 Thread Seva Lapsha
/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 yohg...@ohgaki.net wrote: Hi all, I think my RFC confused people on this list due to improper descriptions and too much information. Sorry for the confusion

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 tjerk.meest...@gmail.comwrote: -1 The nuisance of updating IDE, search tools etc doesn't outweigh typing 9 characters less imho.