Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98344 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18295 invoked from network); 23 Feb 2017 08:58:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Feb 2017 08:58:11 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.66 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.66 mail-wm0-f66.google.com Received: from [74.125.82.66] ([74.125.82.66:36437] helo=mail-wm0-f66.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 30/EA-11648-224AEA85 for ; Thu, 23 Feb 2017 03:58:11 -0500 Received: by mail-wm0-f66.google.com with SMTP id r18so1502662wmd.3 for ; Thu, 23 Feb 2017 00:58:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:cc:from:message-id; bh=sJVe4fDbIOOSI16Xypq7Do/ZTV7pSQ1NCyjgiWytnA8=; b=ISg+egUU+OHzEPKkCGfMXOR+/xdAb1aN09Hv0QtFJkBTyUM1mElRaDAHP5e/bsSYC+ qkNdlcDykEYCuD3x1FsD1V73gtb5V5bM4ssAxlCeDOljtbCqxap/CeG+5f7VnChEJCqF lk5IOZnOUFO1opoqL3nzz2Ed/dJZVC+kVB/fNGwRRGzoBHA24cLg+4yUcNNk8+lL4wwD 5rEt1x8D8tNUG1C1041znPSRD1Gg/Gx0kkX1hMoItnsr6V0NJtS5Rs3x45zhUtlzktmN K5Kpm/v8HNFfiI8iHX9pJIqpNw0N435LGJ7v+BxCS3D2IEXiak80f7vQPFc9BRKroKQh zr5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:cc:from :message-id; bh=sJVe4fDbIOOSI16Xypq7Do/ZTV7pSQ1NCyjgiWytnA8=; b=QVYblXGw4ZPOyByTTzGcV/2Ema0BGW0VtLj4HS/sNV5STCBfz202h8Twji1+PUX029 xLcYYySM7o1ESXeLYSMR8/Fgaz8qv7NNV7yEw+wfjO5chCiaLgXeCZbmErTinA4BxqX9 jhUrJmnrUkj3YirbOIr+Gk8qYo3Z3G7aNM6V9nOlcpvigoZfH1mD1FSaDQH5TYwlsZ/4 Sfy2yr9M0PeD9xVYI1sVq3zttqS6DfcaqsRtn3E/O6a6QXXMgeFDTwj7N2dG3gQ19bmw PlaRGcrSC43mFJSNYYcmL9doKKsNHnjrHVLWeOboPK6tGfH7mMr8H6aNwRM4RdSHYhzg M1eg== X-Gm-Message-State: AMke39ngwvv75/EUv0dFryMfXIl7Xs0KdA6HrGAo1d/ekhtxo9t+A2jpJxj0IOv8O6YZdQ== X-Received: by 10.28.156.151 with SMTP id f145mr1880542wme.8.1487840287858; Thu, 23 Feb 2017 00:58:07 -0800 (PST) Received: from broadband.bt.com ([2a00:23c4:4bd2:6e00:2026:267d:9e65:a790]) by smtp.gmail.com with ESMTPSA id 45sm5093935wrx.60.2017.02.23.00.58.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Feb 2017 00:58:06 -0800 (PST) Date: Thu, 23 Feb 2017 08:58:04 +0000 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: internals@lists.php.net,Andrey Andreev ,=?UTF-8?Q?Micha=C5=82?= CC: "internals@lists.php.net" Message-ID: Subject: Re: [PHP-DEV] Nullable types and strict type-hinting with default null value From: rowan.collins@gmail.com (Rowan Collins) On 23 February 2017 07:23:02 GMT+00:00, Andrey Andreev = wrote: >Hi, > >On Wed, Feb 22, 2017 at 11:18 PM, Micha=C5=82 wrote: > >> "The >declaration >> can be made to accept NULL values if the default value of the >parameter is >> set to NULL"=2E > >This isn't just a PHP 7 work-around for null types, it has existed >since >object type hints were introduced and is very widespread=2E Indeed, it's far too early to think about forcing people to change all the= ir code to the ? notation=2E I'm also not convinced of the value even once = that's established; it's not like "Foo $foo =3D null" can ever mean *someth= ing different* from "?Foo $foo =3D null", it would just be an error=2E Maybe in 10 years' time we'll have another bonfire of unused features, and= this might be one, but it's not something we can plan for right now=2E Regards, --=20 Rowan Collins [IMSoP]