Re: [PHP-DEV] RFC Proposal: New assign value operator

2013-06-27 Thread Peter Lind
On 27 June 2013 11:04, Tom Oram wrote: > Hi Richard, > > Thanks for your reply, the main reason would be operator overloading rather > than the typecasting example, the typecasting version is more for > consistency. I am also fairly that there might be situations where it would > be useful to set

Re: [PHP-DEV] RFC Proposal: New assign value operator

2013-06-27 Thread Tom Oram
Hi Richard, Thanks for your reply, the main reason would be operator overloading rather than the typecasting example, the typecasting version is more for consistency. I am also fairly that there might be situations where it would be useful to set the value of a scalar while preserving the time and

Re: [PHP-DEV] RFC Proposal: New assign value operator

2013-06-26 Thread Alexey Zakhlestin
On 26.06.2013, at 17:29, Sebastian Krebs wrote: > 2013/6/26 Robert Stoll > >> As far as I see it, it is kind of an operator overload mechanism for the >> assign operator. >> This can be useful for small utility classes such as Money, Email etc. >> >> An example was given: >> $price = new Mone

Re: [PHP-DEV] RFC Proposal: New assign value operator

2013-06-26 Thread Sebastian Krebs
d Quadling [mailto:rquadl...@gmail.com] > Gesendet: Mittwoch, 26. Juni 2013 12:51 > An: Tom Oram > Cc: PHP internals > Betreff: Re: [PHP-DEV] RFC Proposal: New assign value operator > > On 25 June 2013 11:01, Tom Oram wrote: > > > Hi everyone, > > > > I've

Re: [PHP-DEV] RFC Proposal: New assign value operator

2013-06-26 Thread Peter Lind
On 26 June 2013 13:54, Robert Stoll wrote: > As far as I see it, it is kind of an operator overload mechanism for the > assign operator. > This can be useful for small utility classes such as Money, Email etc. > > An example was given: > $price = new MoneyValue(); > $price := 29.99; > > Instead o

Re: [PHP-DEV] RFC Proposal: New assign value operator

2013-06-26 Thread Richard Quadling
On 25 June 2013 11:01, Tom Oram wrote: > Hi everyone, > > I've got an idea for an RFC proposal and from reading the instructions it > looks like I should run it past you guys first. > > I have not made any contributions to PHP before although I have made some > custom modifications in house in th