Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82898 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55956 invoked from network); 16 Feb 2015 22:38:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Feb 2015 22:38:51 -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.214.171 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.214.171 mail-ob0-f171.google.com Received: from [209.85.214.171] ([209.85.214.171:39681] helo=mail-ob0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0F/13-36518-97172E45 for ; Mon, 16 Feb 2015 17:38:50 -0500 Received: by mail-ob0-f171.google.com with SMTP id gq1so47071668obb.2 for ; Mon, 16 Feb 2015 14:38:47 -0800 (PST) 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=Hj7nfsVZObqlF1qRYRJyVfJqPh3MWYVsdSxJXGjnDTY=; b=GqJSvlxN0MhvmltUheVK24mmzQXQgB+HbxplBa9ns+vln/1oxaJHPVgedSyRX1Ya6B AkJO32oNHE/b8Ns9A8FlbKD2MDP1SmSbJnzaIGFN9GnxjEqeoCNhshLG+aBll5y70sLT oq+5gNJE+5T+XMtQKwzfcP0QUfsgUChItJGjI= 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=Hj7nfsVZObqlF1qRYRJyVfJqPh3MWYVsdSxJXGjnDTY=; b=F6AhklSSPf4NxhrK3Ls5eHMXauJYyMtfEcO+KLVbVpizI6sDI+6q5a40QqEM8A5mWv kFrO11YNGRH8rM1zQvnHUTE8mDXqkUJwBlXM0VhvfGk6PHKKaldaWVKLRiNZxZ3iDmZ9 QP83+HtCk/wLTJPtmZrQ2z2Fh1z1pS/69sR6Rj2D1q9v1MvsAhxwfaytJCCxnn2k20r0 Li9yit2i9x6kDCJJdcLhb4yHNGYwUZN52PVCFrHCFh/K3u51DQ7f3I5yipYeTNZrNBam 48KFQZatuwvQm9Uw9An0tuDKAbw1YgwjCtBc1tbr/yp8jhi7HYJqaU9qa+uo8buv2Mzn ax/g== X-Gm-Message-State: ALoCoQlZa+EoQodnUEkfe3pIXpL2ZSjo4BDmKLotJFP7UrF3LmWLVh8qgcFyRTfSgtrgoAzITxTZ MIME-Version: 1.0 X-Received: by 10.60.70.141 with SMTP id m13mr16863710oeu.86.1424126326858; Mon, 16 Feb 2015 14:38:46 -0800 (PST) Received: by 10.202.214.205 with HTTP; Mon, 16 Feb 2015 14:38:46 -0800 (PST) In-Reply-To: References: <011801d04a07$83ab1c00$8b015400$@php.net> Date: Tue, 17 Feb 2015 00:38:46 +0200 Message-ID: To: Dmitry Stogov Cc: francois@php.net, Arvids Godjuks , Jefferson Gonzalez , Rowan Collins , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Reviving scalar type hints From: narf@devilix.net (Andrey Andreev) Hi, On Mon, Feb 16, 2015 at 8:56 PM, Dmitry Stogov wrote: > > I would propose exactly Andrea's 0.1. > Most people were agree to support weak type hints by default. > This proposal won't prevent feature addition of optional strict type hints. Sorry, but I'll have to repeat what has been said over and over again - the 0.1 version did not have overwhelming support and quite a lot of people aren't OK with (only) weak type hints. Part of the rationale behind the 0.2+ versions was that it would be unfair to strict typing supporters if weak is accepted alone. I agree with that on 100% (although I didn't agree with the proposed solution) and it's not hard to imagine why ... Also, IMO the only way a weak-types addition will NOT prevent strict type-hints in the future is to use the foo((type) $bar) syntax that was proposed by Anthony Ferrara 2 years ago. The syntax itself being different from that of already existing class type-hints implies both that it's a weak hint and that strict typing is expected to be available in the future (although I see no reason to delay it). In no other way excluding weird strict/weak modes or a regexp-like syntax will you be able to add both features. > All are tired from endless arguing. That's not a reason to force-in a feature until it's clear that it is what we all (or at least most) really want. I hated seeing so much people supporting a proposal that they admit to not like, just so we have something at all - I don't believe that's the right approach, especially coming from tech people. Cheers, Andrey.