>
> 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
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