Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83049 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88759 invoked from network); 18 Feb 2015 11:45:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Feb 2015 11:45:59 -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.174 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.174 mail-we0-f174.google.com Received: from [74.125.82.174] ([74.125.82.174:44598] helo=mail-we0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 80/EB-18888-77B74E45 for ; Wed, 18 Feb 2015 06:45:59 -0500 Received: by wesk11 with SMTP id k11so576801wes.11 for ; Wed, 18 Feb 2015 03:45:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=3WLjFAIW35tfNAwGm0SqIe6uXjydHsMiKVWZSGnWIEg=; b=hE7zIVUXATKpSDHdcmFjEXNmh/bLZkO7p+UHWFywYe3cGV+KSBox5aYGn29FSoAmuI FDjMWfJBIUyxkfq+fazpwPANPjmlmwNYtjQ4ozXS8FcSmW4h7Kzgy2UqZPz+HQ22DYa0 MzeRlFoypByD5WWk+EYwiW3NMI3kOcB6WK+HiBmfDO2tBoDcsAJNg+ScfGK+lv705QrL s40IBY2V6XFvR8dqnFzV2pSLZ/+YZF3e1nNcHeoIu3tjerua9BTosnQGFymsIRLOLccK STtTIkHs+mTVMq9z16rmbGIf44xqiEBAWybfN6teZq9fBkPMvBVEEwnt9jalJRmMdc6i +1cQ== X-Received: by 10.194.172.35 with SMTP id az3mr8211281wjc.43.1424259953543; Wed, 18 Feb 2015 03:45:53 -0800 (PST) Received: from [192.168.0.172] ([62.189.198.114]) by mx.google.com with ESMTPSA id p1sm7987748wib.23.2015.02.18.03.45.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Feb 2015 03:45:52 -0800 (PST) Message-ID: <54E47B63.8010602@gmail.com> Date: Wed, 18 Feb 2015 11:45:39 +0000 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: <54E47546.5030800@php.net> <54E477FE.30901@gmail.com> <54E47A06.3010001@php.net> In-Reply-To: <54E47A06.3010001@php.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Scalar Type Hints v0.4 From: rowan.collins@gmail.com (Rowan Collins) Michael Wallner wrote on 18/02/2015 11:39: > On 18/02/15 12:31, Rowan Collins wrote: >> Michael Wallner wrote on 18/02/2015 11:19: >>> On 17/02/15 23:03, Sara Golemon wrote: >>> >>>> 1) Introduce scalar types for primitives: bool, int, float, string, >>>> resource, object (we already have array) >>>> 1a) Introduce meta-types as pre-defined unions (we can add custom >>>> unions in a later rfc). A possible list may be as follows (again, we >>>> can argue what's in this list separately): >>>> * mixed: any type >>>> * scalar: (null|bool|int|float|string) >>> Hold on, usually, type checking functions don't identify NULL as scalar. >> No need for anyone to hold on; as it says in the section you've quoted >> "we can argue what's in this list separately". Sara's after reactions to >> the principle of having meta-types/unions in general, not their >> definitions, right now. > Did you already incorporate "strict mode" yourself? > SCNR > > I'm not a native speaker, so "hold on" might mean something different to > you than to me. > Sorry, what I meant was, "don't worry, this isn't the kind of issue that we need to worry about yet". Sara's e-mail made clear that these were quick examples, and she wasn't expecting feedback on the details at this stage. Regards, -- Rowan Collins [IMSoP]