Re: [PHP-DEV] RFC proposal - Syntactic sugar for cloning

2012-07-01 Thread Amaury Bouchard
@Michael : I'm not sure to understand what you mean. The "&=" operator does a bitwise AND. But if it was an assignment-by-reference operator, maybe an assignment-by-cloning operator would have seemed a good idea? Some people write code using "=&" like a dedicated operator. For example: $i = 3;

Re: [PHP-DEV] RFC proposal - Syntactic sugar for cloning

2012-06-30 Thread Michael Morris
Uhm... &= On Fri, Jun 29, 2012 at 6:09 PM, Paul Dragoonis wrote: > My input is that we should be focusing on features that PHP lacks, or > fixing bugs rather than adding more sugar syntax just for the sake of > adding it. > > On Fri, Jun 29, 2012 at 7:47 PM, Pierrick Charron wrote: > >> No probl

Re: [PHP-DEV] RFC proposal - Syntactic sugar for cloning

2012-06-29 Thread Paul Dragoonis
My input is that we should be focusing on features that PHP lacks, or fixing bugs rather than adding more sugar syntax just for the sake of adding it. On Fri, Jun 29, 2012 at 7:47 PM, Pierrick Charron wrote: > No problem when you'll come in Montreal ! If you need any help don't > hesitate. > > Pi

Re: [PHP-DEV] RFC proposal - Syntactic sugar for cloning

2012-06-29 Thread Pierrick Charron
No problem when you'll come in Montreal ! If you need any help don't hesitate. Pierrick On 29 June 2012 14:27, Amaury Bouchard wrote: > Yes, guys. I totally understand your point. As I said, I had this idea in > a dreamed context (good or bad dream? I don't know). > But still, I think it's inte

Re: [PHP-DEV] RFC proposal - Syntactic sugar for cloning

2012-06-29 Thread Amaury Bouchard
Yes, guys. I totally understand your point. As I said, I had this idea in a dreamed context (good or bad dream? I don't know). But still, I think it's intellectually interesting, even if it's not a good concept for PHP. :-) Pierrick, I owe you a beer ;-) Le 29 juin 2012 19:06, "Pierrick Charron"

Re: [PHP-DEV] RFC proposal - Syntactic sugar for cloning

2012-06-29 Thread Pierrick Charron
I also agree with Johannes. Pierrick On 29 June 2012 11:01, Patrick ALLAERT wrote: > 2012/6/29 Amaury Bouchard : > > Hello everybody, > > > > It's the first time I write on the internals mailing-list, so let me > > introduce myself quickly. I'm a french and canadian CTO, working in > Paris. > >

Re: [PHP-DEV] RFC proposal - Syntactic sugar for cloning

2012-06-29 Thread Patrick ALLAERT
2012/6/29 Amaury Bouchard : > Hello everybody, > > It's the first time I write on the internals mailing-list, so let me > introduce myself quickly. I'm a french and canadian CTO, working in Paris. > I lead some PHP projects (mainly the Temma framework and FineFS data > replication system). > I begi

Re: [PHP-DEV] RFC proposal - Syntactic sugar for cloning

2012-06-29 Thread Johannes Schlüter
On Fri, 2012-06-29 at 16:25 +0200, Amaury Bouchard wrote: > Back in the real world, we are not cloning objects very often. But, like > many other syntactic sugars (as the short array syntax), I think it could > be handy in some circumstances. Well, arrays are used all over the place. As you said:

[PHP-DEV] RFC proposal - Syntactic sugar for cloning

2012-06-29 Thread Amaury Bouchard
Hello everybody, It's the first time I write on the internals mailing-list, so let me introduce myself quickly. I'm a french and canadian CTO, working in Paris. I lead some PHP projects (mainly the Temma framework and FineFS data replication system). I begin to learn PHP's internal engine, backed