> What other types (except from other classes)... I was talking about other classes... Of course, this does not have to be implemented right now, but the syntax should not close the door for something like that in the future.
> If the magic is useful, why not add the ability? Because it is ugly and limited. All the resent discussion resulted to the fact that type casting is one of the central features of PHP that we cannot live without. So I think that the mechanism to expand type casting should be promoted, even with some special new syntax. :-) Lazare INEPOLOGLOU Ingénieur Logiciel 2012/3/9 Anthony Ferrara <ircmax...@gmail.com> > Lazare, > > On Fri, Mar 9, 2012 at 8:54 AM, Lazare Inepologlou <linep...@gmail.com> > wrote: > > Yes, like that, only better. Since automatic type casting is central in > PHP, > > as this is evident after all this discussion, I believe that it should be > > better supported. There are two thinks that I would like to see here: > > > > 1. No more magic methods, please. > > Any particular reason? If the magic is useful, why not add the > ability? I'm not saying we should get to python level with the shear > number of magic methods, but to artificially limit when useful > behavior can be added... I'm not so sure... > > > 2. It should cover (eventually) casting to and from any type. > > This doesn't? What other types (except from other classes) would you > like to see (or could we do besides resource and null)??? > > Anthony >