Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83287 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58066 invoked from network); 20 Feb 2015 11:07:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2015 11:07:40 -0000 Authentication-Results: pb1.pair.com header.from=chris@chrisnharvey.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=chris@chrisnharvey.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chrisnharvey.com from 74.125.82.177 cause and error) X-PHP-List-Original-Sender: chris@chrisnharvey.com X-Host-Fingerprint: 74.125.82.177 mail-we0-f177.google.com Received: from [74.125.82.177] ([74.125.82.177:42433] helo=mail-we0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/60-54878-56517E45 for ; Fri, 20 Feb 2015 06:07:18 -0500 Received: by wesw62 with SMTP id w62so4902054wes.9 for ; Fri, 20 Feb 2015 03:07:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=webrKQc4bkwPuBNjdgKMaCZtqc+6LttsE9lBfHAq6B0=; b=WD/PihbHfSLTgUTJhihufVOXVkzm0CVpcKDoYoCRXgQHUZrKvu9NIw5Y4p0fa9tMEm zHpYUMRbUBYi1btmXnwny7KtD4UVjPL50fPZW3siylJjE/qd9GLjkhRKNg7z1SrDfemU w1bsnm2y0M4Yqr1nq2fjk5PrtLpzkrxniFv2qcKgXU9nkcbpa0ZXdb89qQtmrV3qAmp6 LGPn37cz1zcjgRR+bf5MQ0BHIJEPjg1ojyMHY8DRVsV0+gTlaxLRCG/ANmx6a7ArwclD dt2e+jEGNWxFkuEPdu+yxIWNrFt8Z6qFcAED1OXUenAl1BGm2CcTkBslrA4UJCKACe+9 V7bw== X-Gm-Message-State: ALoCoQkaH8SEy1MWOwKHoBnCbyEM6R1cpRxDUlGAs+HxWn70l1R7Chproyc2cQuxiPflhLU5ZEzz X-Received: by 10.194.77.230 with SMTP id v6mr18014365wjw.25.1424430434528; Fri, 20 Feb 2015 03:07:14 -0800 (PST) Received: from [10.0.1.12] (178-23-132-197.host.as51043.net. [178.23.132.197]) by mx.google.com with ESMTPSA id dx11sm38655702wjb.23.2015.02.20.03.07.13 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Feb 2015 03:07:13 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) X-Mailer: iPhone Mail (12B466) In-Reply-To: Date: Fri, 20 Feb 2015 11:07:14 +0000 Cc: "internals@lists.php.net" Content-Transfer-Encoding: quoted-printable Message-ID: <1624E4FE-8937-4BC1-A449-47D6DF3973E0@chrisnharvey.com> References: To: Anthony Ferrara Subject: Re: [PHP-DEV] [RFC-Discuss] Scalar Type Declarations v0.5 From: chris@chrisnharvey.com (Chris Harvey) Hi Anthony, I have been interested in this proposal for a while now. I'm not on internal= s, but I have a question about your proposal. > 1. declare(strict_types=3D1) (if used) is required to be the first > instruction in the file only. No other usages allowed. How would this work with namespaces? declare(strict_types=3D1) namespace Foo; namespace Bar; declare(strict_types=3D1) strict namespace Baz; Really good proposal though. Really hope it passes vote and we finally get s= calar type hints in PHP. Cheers, Chris=