Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75561 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20548 invoked from network); 15 Jul 2014 20:02:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jul 2014 20:02:44 -0000 Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.219.54 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.219.54 mail-oa0-f54.google.com Received: from [209.85.219.54] ([209.85.219.54:64335] helo=mail-oa0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0E/27-15121-4E885C35 for ; Tue, 15 Jul 2014 16:02:44 -0400 Received: by mail-oa0-f54.google.com with SMTP id n16so6427292oag.13 for ; Tue, 15 Jul 2014 13:02:42 -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:content-transfer-encoding; bh=eD2ZJkCZv+R13JrPGixz1CxlpBVoy7ZaRe+bo9hJRis=; b=LQn4cDD9WbAvVV2235zFO9tYNZU4i5jFAgeGavYZIBdKYwtcjcc7r+QiyrJAsgMLoa e40R8M3mfkaSeYrOLOtucYWDcPkTSpQmcQccs3MWxlGv4DN7rCgjkEJ2IugSpldbbrsd 5PyvxVnq9mIqCnO1u2ngSCsWrQcIjdp2kHVGc= 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 :content-transfer-encoding; bh=eD2ZJkCZv+R13JrPGixz1CxlpBVoy7ZaRe+bo9hJRis=; b=bQYRLHS18wiNR1rav/UaZrJPOuxxqA4vEXmV67Z347l1a81+9rr3LJSGr8bkPJ2HZC tnzlDEndzcFB/jqXu1fI/D7NE83fLo5iKOVkPjt23A6A0abwilwXDKMZgKAIjJNLQVp2 XxM1+dS1ehtPKFuMUzJ+IbDUIZGGPhbIAtFAZGvcW++dG/os9V2UWGi+2ftQO/eA4mFA Qeq/VlpMXV8kwqt1g8Ul5Dhf50rMNqMA1yoC75LLS0a3nUJ9a+OAEgWtyqd+pjNH6bLQ C89OFGpApJ1GpdAjRsD6fgrqgKRpenpccgX/NRBG0vyRPpRq/JC25K4uykwHd0F0gvg5 hK8A== X-Gm-Message-State: ALoCoQlfjnmTtc/vgNsKXWyIIFZlA5Zr37dRd4zaHWTwR6yTu+AJpl7xOZ7ON7MHFZNZnBZ5tl4k MIME-Version: 1.0 X-Received: by 10.60.23.34 with SMTP id j2mr29426146oef.32.1405454561696; Tue, 15 Jul 2014 13:02:41 -0700 (PDT) Received: by 10.202.75.205 with HTTP; Tue, 15 Jul 2014 13:02:41 -0700 (PDT) In-Reply-To: <54536191-1B92-4933-973F-0C8289D13A4C@ajf.me> References: <08503591-EFC8-48E6-984E-FFC292C5EA5F@ajf.me> <16D48604-0C0A-4613-91A4-21392E3A2636@ajf.me> <05CE2216-C5D9-4937-9F2E-AA1407284D9F@ajf.me> <53C460DF.5040304@sugarcrm.com> <53C53A96.2040303@gmail.com> <53C55342.1010207@sugarcrm.com> <53C563B3.6060905@gmail.com> <54536191-1B92-4933-973F-0C8289D13A4C@ajf.me> Date: Tue, 15 Jul 2014 23:02:41 +0300 Message-ID: To: Andrea Faulds Cc: Rowan Collins , Stas Malyshev , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening) From: narf@devilix.net (Andrey Andreev) On Tue, Jul 15, 2014 at 10:48 PM, Andrea Faulds wrote: > > On 15 Jul 2014, at 20:43, Andrey Andreev wrote: > >> I'm sorry, I know what you mean here and I'm not criticizing you >> specifically (in fact, I'm intentionally taking it ouf of context), >> but that's "PHP internals", not "PHP community". >> >> The PHP community that I know, wants to have _both_ type cast hinting >> and strict type declarations. > > I=E2=80=99m not sure that=E2=80=99s quite the case. There are camps wanti= ng one, there are camps wanting the other, I suppose some want both, but to= me that seems like a not-a-compromise compromise solution. The point of th= is RFC, to some extent, is to be a reasonable compromise between completely= strict declarations and cast hinting, providing the safety of the first an= d the flexibility of the second. I think it strikes the balance well. Unless you really force the camps to pick one by saying "you can't have Y if we've got X" (to which there's no technical limitation, so that's not true), then a camp that wants X doesn't mean a camp that doesn't want Y, so we end up with: Camps wanting one + camps wanting another =3D=3D a larger camp that wants all of it A compromise isn't excluded by this. It would just have to be a "ok, let's do X right now and we'll think about Y later" compromise (point being, don't exclude Y) instead of a "let's have a mixed something between the two that nobody really, really likes" one.