Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71654 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43040 invoked from network); 28 Jan 2014 01:16:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jan 2014 01:16:05 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.173 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.216.173 mail-qc0-f173.google.com Received: from [209.85.216.173] ([209.85.216.173:52998] helo=mail-qc0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 76/86-01140-3D407E25 for ; Mon, 27 Jan 2014 20:16:04 -0500 Received: by mail-qc0-f173.google.com with SMTP id i8so9315546qcq.32 for ; Mon, 27 Jan 2014 17:16:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=I8P8dgOcIQKUfzdf1e12ffQOy7XyP7CMJQZIWKC1TWs=; b=njjPrrQ4l4h99cCj1G+BFYIACRFXt8/4wwhNIDx1RO2QCZ5DhV1JK5m0N2JAfHYQor hAdVXnDn/7pBuN36O1ckn4aNgERCqv89xj4BxMfHHDcfmd8zrm/YRqxZu1exbRlK+d62 nrwcGhHdyXb1XMlqE4MFJsUnv7TvG7LT0AwBYEkiMQNgEq4gd6qk/9ya0UMTqC9y7UFL IIeTRl8G65MBAOLKsbfGlleuM7YJztg2CAvD3jbcCeOh5kFbfGCjjkEyFJmHiiGlPDFD gyxlBTIvvypvns8ntu/7Fp5vG1wWelCP9TflYLr3HxWqIMGb++DALSWSzOcqhX8u7cSY bnpQ== X-Received: by 10.224.52.3 with SMTP id f3mr13003444qag.26.1390871760843; Mon, 27 Jan 2014 17:16:00 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.224.2.194 with HTTP; Mon, 27 Jan 2014 17:15:20 -0800 (PST) In-Reply-To: <52E6FD70.4010005@ajf.me> References: <52DDBAE5.2010803@ajf.me> <52E6FD70.4010005@ajf.me> Date: Tue, 28 Jan 2014 10:15:20 +0900 X-Google-Sender-Auth: HzqarSj7MFh0oqgj7EL78kacoH4 Message-ID: To: Andrea Faulds Cc: PHP internals Content-Type: multipart/alternative; boundary=001a11c20f7e3bcb8204f0fd916c Subject: Re: [PHP-DEV] Re: [VOTE] [RFC] Alphanumeric Decrement From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c20f7e3bcb8204f0fd916c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Andrea, On Tue, Jan 28, 2014 at 9:44 AM, Andrea Faulds wrote: > We have, to my delight, unanimously rejected this RFC 21 to 0 (=E2=88=9E)= . > > 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 =3D 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 yohgaki@ohgaki.net --001a11c20f7e3bcb8204f0fd916c--