Re: [PHP-DEV] [RFC] User Defined Operator Overloads (v0.6)

2021-12-15 Thread Jordan LeDoux
On Wed, Dec 15, 2021 at 7:04 AM Dik Takken wrote: > Hi Jordan, > > Thanks a lot for your work on this RFC! I like the direction this is going. > > One thing that may be worthwhile looking into is the query builder use > case. I mentioned it before: > > https://externals.io/message/115648#115771

Re: [PHP-DEV] [RFC] User Defined Operator Overloads (v0.6)

2021-12-15 Thread Larry Garfield
On Wed, Dec 15, 2021, at 10:10 AM, Rowan Tommins wrote: > On 15/12/2021 15:03, Dik Takken wrote: >> $query->where(Price < 100); >> >> Here Price is a class that represents a database column which has a >> (static) overload of the '<' operator. The operator overload yields an >> object

Re: [PHP-DEV] [RFC] User Defined Operator Overloads (v0.6)

2021-12-15 Thread Rowan Tommins
On 15/12/2021 15:03, Dik Takken wrote: $query->where(Price < 100); Here Price is a class that represents a database column which has a (static) overload of the '<' operator. The operator overload yields an object representing a database expression, which gets passed to the where() method.

Re: [PHP-DEV] [RFC] User Defined Operator Overloads (v0.6)

2021-12-15 Thread Dik Takken
On 09-12-2021 21:11, Jordan LeDoux wrote: Hello internals, I last brought this RFC up for discussion in August, and there was certainly interesting discussion. Since then there have been many improvements, and I'd like to re-open discussion on this RFC. I mentioned in the first email to the

[PHP-DEV] Re: Requesting RFC karma

2021-12-15 Thread Christoph M. Becker
On 15.12.2021 at 09:47, Oliver Nybroe wrote: > Hi, I would like to have RFC karma, so I can submit an RFC for a new syntax > for checking not instance of. RFC karma granted. Best of luck with the RFC! :) -- Christoph M. Becker -- PHP Internals - PHP Runtime Development Mailing List To

[PHP-DEV] Re: Requesting RFC karma

2021-12-15 Thread Christoph M. Becker
On 15.12.2021 at 09:47, Oliver Nybroe wrote: > Hi, I would like to have RFC karma, so I can submit an RFC for a new syntax > for checking not instance of. RFC karma granted. Best of luck with the RFC! :) -- Christoph M. Becker -- PHP Internals - PHP Runtime Development Mailing List To

[PHP-DEV] Requesting RFC karma

2021-12-15 Thread Oliver Nybroe
Hi, I would like to have RFC karma, so I can submit an RFC for a new syntax for checking not instance of. Best regards Oliver Nybroe (he/him)