Re: [PHP-DEV] Typed properties patch

2016-04-15 Thread Lester Caine
On 15/04/16 22:01, Yasuo Ohgaki wrote: >> public Node | null $left; > Value must be able to be NULL. > SQL has "NOT NULL" constraint. We may have "MAY NULL" and > this syntax seems reasonable choice. While the value of a field may be constrained as NOT NULL, it may also be defined as DEFAULT xxx

Re: [PHP-DEV] Typed properties patch

2016-04-15 Thread Yasuo Ohgaki
Hi all, On Thu, Apr 7, 2016 at 9:44 PM, Bob Weinand wrote: >> 1) While parameters allow null to be accepted as the default value, null is >> never a valid value for a typed property. >> >> I think we must have a way to make properties explicitly nullable. Otherwise >> we

Re: [PHP-DEV] Typed properties patch

2016-04-07 Thread Fleshgrinder
On 4/7/2016 8:21 PM, Dmitry Stogov wrote: > Today, PHP works with arguments in this way. > If we decide to enable nullable "?" syntax and/or "union types" we will > have to use them for properties as well. > but for now, we don't have anything accepted yet, and we are going to > push both RFC on

Re: [PHP-DEV] Typed properties patch

2016-04-07 Thread Dmitry Stogov
On 04/07/2016 08:55 PM, Fleshgrinder wrote: On 4/7/2016 3:55 PM, Dmitry Stogov wrote: On 04/07/2016 03:44 PM, Bob Weinand wrote: Am 6.4.2016 um 10:45 schrieb Dmitry Stogov >: 1) While parameters allow null to be accepted as the default value, null is

Re: [PHP-DEV] Typed properties patch

2016-04-07 Thread Fleshgrinder
On 4/7/2016 3:55 PM, Dmitry Stogov wrote: > On 04/07/2016 03:44 PM, Bob Weinand wrote: >>> Am 6.4.2016 um 10:45 schrieb Dmitry Stogov >> >: >>> 1) While parameters allow null to be accepted as the default value, >>> null is never a valid value for a typed

Re: [PHP-DEV] Typed properties patch

2016-04-07 Thread Dmitry Stogov
On 04/07/2016 03:44 PM, Bob Weinand wrote: Hey, Am 6.4.2016 um 10:45 schrieb Dmitry Stogov >: Hi Jow, First of all, I appreciate the amount of effort you already invested into this idea. Anyway, I still don't agree with the following terms of

Re: [PHP-DEV] Typed properties patch

2016-04-07 Thread Bob Weinand
Hey, > Am 6.4.2016 um 10:45 schrieb Dmitry Stogov : > > Hi Jow, > > First of all, I appreciate the amount of effort you already invested into > this idea. > Anyway, I still don't agree with the following terms of RFC and corresponding > implementation: > > 1) While