Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81612 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76392 invoked from network); 2 Feb 2015 16:57:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Feb 2015 16:57:10 -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.215.41 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.215.41 mail-la0-f41.google.com Received: from [209.85.215.41] ([209.85.215.41:47903] helo=mail-la0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5D/E8-34915-56CAFC45 for ; Mon, 02 Feb 2015 11:57:10 -0500 Received: by mail-la0-f41.google.com with SMTP id gm9so43041989lab.0 for ; Mon, 02 Feb 2015 08:57:07 -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:content-transfer-encoding; bh=Q7ETCleJB+HCsPeUlUkKdJHN2BbaFsJOve3ARBgiA+c=; b=Ravd6qlqFvvnqBtflW6ypFlc9lH+NKYFHlak55AqibKqfu87j9e9dYvtH2thXwSRpd L/4VIIkAX/qzUK277KhuRaw2sEOUynQB5XtuH0ZZdAb7gV8UslKo2sF1UtEE7csbcBjU pAF/KCdDF4ya8Spavk0HckGT+QMV0GdZwqKzs= 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=Q7ETCleJB+HCsPeUlUkKdJHN2BbaFsJOve3ARBgiA+c=; b=aJsZRzsGHzLqbG3ALLP9Q24M7syQUSgUu+ttDnTsxyUf7gcY6YjMASDElEo08aaqer OHNP+7v1vHbqdAKugt7P81qBkUXUidlxk5XgY6POn8wR2Bm5HRt51wYAG4bwYOJk0gpk lkdJhI+0J+VTEept6tl0ikFNzUmhATEuNVzE5/cRtM9vTbPbSEUxrj2JC6fqA7K9zNAG DWATl0pTKOf05dQJ31zikLNfj+OkkQi4jfCCbv4+e1LlYBaPM3lxwiQP3DDk9fK/fyGg kEl8kjH3hCj1wc45ckdTgO2Cmk9Y2xKOiE/SHbsKZzdi8tHCY89hCoO9b/HfQxZwunX2 +XPw== X-Gm-Message-State: ALoCoQncrqoYin7wipkH4oeJdREohgopVy0NyZFoDR82K68uwq0JADdcCFEhMrAclkrCWaIHmZ1y MIME-Version: 1.0 X-Received: by 10.152.43.193 with SMTP id y1mr17047216lal.35.1422896226871; Mon, 02 Feb 2015 08:57:06 -0800 (PST) Received: by 10.112.144.74 with HTTP; Mon, 2 Feb 2015 08:57:06 -0800 (PST) In-Reply-To: References: <8DCD1B72-C81D-499E-B455-E4A042CD76E6@ajf.me> <6C58B302-C78A-490B-A333-4D1A71334E19@ajf.me> Date: Mon, 2 Feb 2015 18:57:06 +0200 Message-ID: To: Andrea Faulds Cc: Derick Rethans , Dmitry Stogov , PHP Internals List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Scalar Type Hints v0.2 From: narf@devilix.net (Andrey Andreev) Hi, On Mon, Feb 2, 2015 at 6:52 PM, Andrea Faulds wrote: > Hi Andrey, > >> On 2 Feb 2015, at 16:48, Andrey Andreev wrote: >> >> As already said, we're just going around in circles at this point, but >> a migration issue? >> >> Whatever code using the scalar type hints should be *new* code in >> userland. > > Why not existing userland code? If only new code adds type hints, the abi= lity to detect errors in code is severely curtailed. That would be really u= nfortunate. > >> You're basing your whole argument on the assumption that all >> internal functions would break with strict=3D1 ... nobody needs that and >> it doesn't have to be done. > > I wasn=E2=80=99t talking about internal functions=E2=80=A6 I=E2=80=99m ta= lking about userland code in the hypothetical case that we added strict-onl= y hints. > > I don=E2=80=99t see where you=E2=80=99ve gotten that impression from. > Well ... existing userland code doesn't have scalar type hints, it couldn't possibly do. How can you have migration issues with it? Cheers, Andrey.