Re: Re: [VOTE] [RFC] Alphanumeric Decrement

From: Date: Tue, 28 Jan 2014 01:15:20 +0000
Subject: Re: Re: [VOTE] [RFC] Alphanumeric Decrement
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
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]


Thread (19 messages)

« previous php.internals (#71654) next »