Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82281 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48168 invoked from network); 9 Feb 2015 13:51:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Feb 2015 13:51:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=sebastian@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sebastian@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 93.190.64.238 as permitted sender) X-PHP-List-Original-Sender: sebastian@php.net X-Host-Fingerprint: 93.190.64.238 mail-2.de-punkt.de Received: from [93.190.64.238] ([93.190.64.238:46795] helo=mail-99.de-punkt.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 44/23-50460-A7BB8D45 for ; Mon, 09 Feb 2015 08:51:55 -0500 Received: from localhost (localhost [127.0.0.1]) by mail-99.de-punkt.de (Postfix) with ESMTP id 226153A2D2 for ; Mon, 9 Feb 2015 14:51:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail-2.de-punkt.de Received: from mail-99.de-punkt.de ([127.0.0.1]) by localhost (mail-2.de-punkt.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jO_s2cuzCGbJ for ; Mon, 9 Feb 2015 14:51:52 +0100 (CET) Received: from [192.168.178.24] (p54BBA6D6.dip0.t-ipconnect.de [84.187.166.214]) (Authenticated sender: php@sebastian-bergmann.de) by mail-99.de-punkt.de (Postfix) with ESMTPSA id 9C4333A2CE for ; Mon, 9 Feb 2015 14:51:51 +0100 (CET) Message-ID: <54D8BB76.1080801@php.net> Date: Mon, 09 Feb 2015 14:51:50 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: internals@lists.php.net References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> <54D5659D.5000602@php.net> In-Reply-To: <54D5659D.5000602@php.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [VOTE] Scalar Type Hints From: sebastian@php.net (Sebastian Bergmann) Am 07.02.2015 um 02:08 schrieb Sebastian Bergmann: > After reading your email, Nikita, I deleted my vote (it was no before). > I will review the RFC again, with your arguments (and others) in mind > and maybe I'll come to a different conclusion. I have voted (no) again. I still think that if we add support for scalars in type declarations then the corresponding check must be strict. But since that strictness does not align with the spirit of PHP I much rather have no support for scalars than one that is not strict. Maybe built-in classes such as String, Integer, Float, Boolean that know how convert themselves to the corresponding scalar type are a viable approach that is worth exploring.