Re: [PHP-DEV] Suggested change: change priority of new and ->

2018-02-08 Thread Haralan Dobrev
> > new ($var[0]->prop) (arguments) > > — while keeping simple cases of "new $class (arguments)" without change. > Yes, this moves parentheses from one place to another (and occasionally > breaks the old code) but frequency wise I think it's an improvement. > > What do you think? > > Jaroslav Wegner > -- Haralan Dobrev CTO @ Clippings.com https://hkdobrev.com

Re: [PHP-DEV] [RFC] Safe Casting Functions

2014-10-20 Thread Haralan Dobrev
In general I like this RFC. I don't see why to_string would not accept and cast integers and floats to strings. And even if there is a valid reason it is not mentioned. If this gets accepted you should consider the naming in the user documentation. Beginners should not consider these functions "s