Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78258 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22242 invoked from network); 22 Oct 2014 23:01:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Oct 2014 23:01:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.217.178 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.217.178 mail-lb0-f178.google.com Received: from [209.85.217.178] ([209.85.217.178:43172] helo=mail-lb0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 41/4A-63701-F5738445 for ; Wed, 22 Oct 2014 19:01:51 -0400 Received: by mail-lb0-f178.google.com with SMTP id w7so3704729lbi.37 for ; Wed, 22 Oct 2014 16:01:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=g8MhHxpMgevVLI6VFeGynplePRxIsFbTrm788/D3O0I=; b=NCzghJ8QsJnR9HcySp80rHESmn4wQRH0aDfkM1p3YisN6zCUg5v0rprKc3KbAIfCz4 CMc7gNl9oK4AUP1pryWyRrO7jVe0lo8COp3+r54mtlvmgGC0kWgcsQx8CmkNpAu3dkSV kNQgtBH5SZxsWK2YpJhnFO3JWOGM/CIFAQxhg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=g8MhHxpMgevVLI6VFeGynplePRxIsFbTrm788/D3O0I=; b=Hli6YGqynVSCqR3vFgtMtLeRtmsmdfbazcxU2mR6h43XzxOpn7AA/S/V70onkcC4TV Py2buaHl78Yk2iQxJRNx0cq8SUiFNE4HJy8oLSZI5esXf1M506oDMFrZIc6vnG67izAE hCnDmEu7y+rR0L2U7801IJ5AtSrW7+t1Sj3Grncy5Gpjxf6EWutYnhNSKMKVpWmNhVmd zS+UiACs3lAKKUzmBqU9XDzzP1EsTgidut+Jil8T4gsaZv+rcp8LA/CFFufvfVgzJA6N SWIbsDz8sOBI3iHE9MZm05puzlpUfSRK27IHpeFqJIW7AS5PKbt32DC4lgPu1AyXVV+v SCnA== X-Gm-Message-State: ALoCoQmOY4Eq1vhqkwEuSZgwJqHv8oYHzzYVgBl5Rv/mqBmqCNcCpvF8goz277bu1w44YlQzliGJ MIME-Version: 1.0 X-Received: by 10.112.148.130 with SMTP id ts2mr986327lbb.43.1414018908156; Wed, 22 Oct 2014 16:01:48 -0700 (PDT) Received: by 10.112.0.102 with HTTP; Wed, 22 Oct 2014 16:01:47 -0700 (PDT) In-Reply-To: References: <66B7B28C-2651-4A71-AC2A-55D4C7BB3DDC@ajf.me> <866A39C7-6F11-408D-8BCA-594BA22E8569@ajf.me> <5447682B.2080100@sugarcrm.com> <019325A5-4F82-4179-B4D7-29E5649B2616@ajf.me> <77c09d71b5ee91245640e414c320518d@mail.gmail.com> Date: Thu, 23 Oct 2014 02:01:47 +0300 Message-ID: To: Zeev Suraski Cc: Andrea Faulds , Stas Malyshev , Dmitry Stogov , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Safe Casting Functions From: narf@devilix.net (Andrey Andreev) On Thu, Oct 23, 2014 at 1:34 AM, Zeev Suraski wrote: >> -----Original Message----- >> From: Andrey Andreev [mailto:narf@devilix.net] >> Sent: Thursday, October 23, 2014 1:15 AM >> To: Zeev Suraski >> Cc: Andrea Faulds; Stas Malyshev; Dmitry Stogov; PHP Internals >> Subject: Re: [PHP-DEV] [RFC] Safe Casting Functions >> >> > While it doesn't explicitly say so, it's clear that one of the goals >> > of the RFC is make it easier for a 'strict typing' RFC to be accepted >> > in the future. This is a clear indication this constitutes a >> > fundamental >> change to the core language. >> >> I'd argue that it has the exact opposite goal - to be able to say "use >> to_string(), to_int(), etc; we don't need strict type hinting". > > You may be right, I may have misinterpreted the rationale - but I think the > consequences are still the same. If this (in the eyes of the author) undoes > the need for a feature as fundamental as strict typing, how can it be just a > bunch of simple functions? Well, that might be the author's rationale, but you (probably) misinterpreted that exactly because it's not a *technical* limitation for strict type hints in the future. Personally, I only care about the technical side of it. As far as intentions and politics are concerned - if we don't play politicts for this one, we shouldn't play them for scalar hints as well. I've said this about every similar proposal so far: It is useful, so I don't mind having it, but I *also* want strict scalar type hints with the same syntax as for objects. So that's that - it's just not the same thing. Cheers, Andrey.