Re: [PHP-DEV] Re: [RFC-Discuss] Scalar Type Declarations v0.5

2015-02-25 Thread Shashank Kumar
On Wed, Feb 25, 2015 at 4:30 AM, Dmitry Stogov wrote: > anyone may tell, what this will print without running :) > > main.php > > declare(strict_types=1) > include "a.php"; > include "b.php"; > var_dump(foo("5")); > ?> > > a.php > = > declare(strict_types=0) > function foo(string $

Re: [PHP-DEV] Coercive Scalar Type Hints RFC

2015-02-22 Thread Shashank Kumar
On Sat, Feb 21, 2015 at 2:39 PM, Pavel Kouřil wrote: > On Sat, Feb 21, 2015 at 11:25 PM, Zeev Suraski wrote: > > There’s a fundamental difference between the two RFCs that goes beyond > > whether using a global INI setting and the other per-file setting. The > > fundamental difference is that t

Re: [PHP-DEV] [RFC] Implicit isset() in Shorthand Ternary Operator

2014-09-16 Thread Shashank Kumar
> Really, you should thank Nikita, not me. He wrote the patch. ^^ ​He gets my bag of thanks for many things. > Well, the patch is written for master. It could be back ported, but I don’t know how. > Also, even if there is a 5.7, it sounds like it will consist purely of bug fixes and E_DEPRECATED w

Re: [PHP-DEV] [RFC] Implicit isset() in Shorthand Ternary Operator

2014-09-16 Thread Shashank Kumar
This will be a nice addition. Kudos to you! Is there an issue targeting next minor for this? (assuming there is one) ​

Re: [PHP-DEV] [RFC] Implicit isset() in Shorthand Ternary Operator

2014-09-08 Thread Shashank Kumar
Hi Andrea Rather than giving a new meaning to an old operator why not have a different operator for this? .NET has a 'null coalescing' operator for the same purpose which works out quite well in the given situation and is non-ambiguous as well. http://msdn.microsoft.com/en-us/library/ms173224.aspx