Hi Andrea,
On Tue, Jan 28, 2014 at 9:44 AM, Andrea Faulds <[email protected]> wrote:
> We have, to my delight, unanimously rejected this RFC 21 to 0 (∞)..
>
> I may now consider proposing an RFC to remove alphanumeric decrement from
> PHP 6, instead, considering I also have a patch for that.
>
As someone mentioned, string decrements can be harder.
I'm not sure if this is good.
Instead, it may be nice to have RFC that raises error for problematic
automatic
casting(type juggling) without explicit cast. Perhaps, INI setting like
strict_cast = ERROR_LEVEL (Default: 0)
It needs additional check that may slow down execution a bit, though.
With this approach, we may have weak type and better type safety.
PHP behaves more like modern scripting languages that have stronger
type safety. Just an idea.
Regards,
--
Yasuo Ohgaki
[email protected]