Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71393 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72948 invoked from network); 22 Jan 2014 00:29:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jan 2014 00:29:34 -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.217.172 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.217.172 mail-lb0-f172.google.com Received: from [209.85.217.172] ([209.85.217.172:58108] helo=mail-lb0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EF/E5-40896-CE01FD25 for ; Tue, 21 Jan 2014 19:29:33 -0500 Received: by mail-lb0-f172.google.com with SMTP id c11so6533295lbj.17 for ; Tue, 21 Jan 2014 16:29:29 -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=Vlv5R/BEE6OSb4EdlOSZlhe4QxZkNoAQYSflwKuYTtw=; b=OFsAnnAB+u7moK2LFcc7dSunoLx+r5Hmitk2yp8FmEZoo/i1Vl6wQ3jA2TKrR/RlTu B+qJPNZ6sRm4qJALCVxHPh7PKED7FE8Eb+toMXnJ+eRaGkAGtFDtpmjHqWr1XvlcNQEI zV7zpZqomj7m6hCw6Iw/GYjpcrn/VN6XwpME/W4JbYzt2GGU0vnXhzpbv+GxFueCZ4Hv AvpD2GUMVAlxsAI7zgfPHgkFiQXAbI+BYpGBOWJ1H9DCYyJS0SQCeHRhIUYnseruZ+GP zD2VswPGriZMb4hsKh3hurj+6EnrqfAt9DLbOLpOSWHdJ0CZRfk+K5B2oAhB+/CNDyuM iSaw== X-Received: by 10.112.144.69 with SMTP id sk5mr9130lbb.44.1390350569702; Tue, 21 Jan 2014 16:29:29 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.6.68 with HTTP; Tue, 21 Jan 2014 16:28:49 -0800 (PST) In-Reply-To: <52DED5B5.9050905@ajf.me> References: <52DDBAE5.2010803@ajf.me> <52DED5B5.9050905@ajf.me> Date: Wed, 22 Jan 2014 09:28:49 +0900 X-Google-Sender-Auth: 6G9kElD7N7B5Mr6IiaK4f59mkig Message-ID: To: Andrea Faulds Cc: PHP internals Content-Type: multipart/alternative; boundary=047d7b3432f4d20b3c04f0843730 Subject: Re: [PHP-DEV] [VOTE] [RFC] Alphanumeric Decrement From: yohgaki@ohgaki.net (Yasuo Ohgaki) --047d7b3432f4d20b3c04f0843730 Content-Type: text/plain; charset=UTF-8 Hi Andrea, On Wed, Jan 22, 2014 at 5:16 AM, Andrea Faulds wrote: > However I think type juggling is entirely misguided, and should we do it > at all, int -> string and float -> string should be one-way conversions. > Doing the reverse seems like a bad idea to me. Type safety is good for developing apps with less bugs. Modern scripting languages have stricter types. One way conversion would be good for PHP 6 or 5.7 probably. We don't have to restrict it, but raising E_STRICT without explicit cast would be enough. There may be INI for this behavior. I would vote yes if there is such RFC. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --047d7b3432f4d20b3c04f0843730--