Re: [PHP-DEV] Re: Combined assignment operator for short ternary

2012-08-25 Thread Sebastian Krebs
Am 25.08.2012 01:53, schrieb Nikita Popov: On Sat, Aug 25, 2012 at 1:49 AM, Sebastian Krebs wrote: Hi, It's like with any other compound operator: A _real_ reason isn't there. But saying "It's not worth it" is something I can live with (even if I don't know how much effort it would take ;)). I

Re: [PHP-DEV] Re: Combined assignment operator for short ternary

2012-08-24 Thread Nikita Popov
On Sat, Aug 25, 2012 at 1:49 AM, Sebastian Krebs wrote: > Hi, > > It's like with any other compound operator: A _real_ reason isn't there. But > saying "It's not worth it" is something I can live with (even if I don't > know how much effort it would take ;)). I just asked myself: '?:' is (a kind >

Re: [PHP-DEV] Re: Combined assignment operator for short ternary

2012-08-24 Thread Sebastian Krebs
Am 25.08.2012 01:00, schrieb Stas Malyshev: Hi! To point that out: I _don't_ want to change the behaviour, which means | $foo['xy'] ?:= 'bar'; would trigger a notice like | $foo['xy'] = $foo['xy'] ?: 'bar'; Then I personally don't see much point in it. Saving a couple of keystrokes IMHO is

Re: [PHP-DEV] Re: Combined assignment operator for short ternary

2012-08-24 Thread Stas Malyshev
Hi! > To point that out: I _don't_ want to change the behaviour, which means > > | $foo['xy'] ?:= 'bar'; > > would trigger a notice like > > | $foo['xy'] = $foo['xy'] ?: 'bar'; Then I personally don't see much point in it. Saving a couple of keystrokes IMHO is not really worth it. -- Stanisla

[PHP-DEV] Re: Combined assignment operator for short ternary

2012-08-24 Thread Sebastian Krebs
Hi, Just want to push my thread ^^ Nobody interested? Too stupid? I need to learn C (:X)? Too complicated? To much impact (on something)? Too less sense? BC? Anything not mentioned here? To point that out: I _don't_ want to change the behaviour, which means | $foo['xy'] ?:= 'bar'; would tr