Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83048 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86914 invoked from network); 18 Feb 2015 11:39:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Feb 2015 11:39:58 -0000 Authentication-Results: pb1.pair.com header.from=mike.php.net@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=mike.php.net@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.41 as permitted sender) X-PHP-List-Original-Sender: mike.php.net@gmail.com X-Host-Fingerprint: 74.125.82.41 mail-wg0-f41.google.com Received: from [74.125.82.41] ([74.125.82.41:41405] helo=mail-wg0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8E/7B-18888-D0A74E45 for ; Wed, 18 Feb 2015 06:39:57 -0500 Received: by mail-wg0-f41.google.com with SMTP id b13so632637wgh.0 for ; Wed, 18 Feb 2015 03:39:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=hcIazvE47iodNj5WccWygeqpEOztShZrnYj8miv8TXI=; b=gHH8VBcYrM8/eB+Q2z+dZZjeX2KR4Ek/9s9vsnfho7tJ89waQPgPSBHyLYQFTwpKo8 HgRkPDTzVPYou3wNQYb/yNnh+FdaVeh9333Mm/0mGyREFPjwjGF3jQ3CggdTnsvaGRns IeKdcGPyKV08gQeCWvJaiGAfellM0r3M6x6yIJBlco7PNfj0vakl+mLpJXB2O0xT0TFy 8caYdFHl06KXCWpL+Kxs0A8RpgIEGkrs9fXZfIu42WLXXs8oDhXBp9g0p9TyERouIuqb rvmHQ5nSHxRFkpMu/LpWv1LS2IK7NHa6mpg4tZBvdDq/5GL2XyxgI0+Hor8iqRKd4MX2 D/1Q== X-Received: by 10.194.237.34 with SMTP id uz2mr70200107wjc.157.1424259592495; Wed, 18 Feb 2015 03:39:52 -0800 (PST) Received: from [192.168.2.121] (89-104-28-113.customer.bnet.at. [89.104.28.113]) by mx.google.com with ESMTPSA id cf12sm32227141wjb.10.2015.02.18.03.39.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Feb 2015 03:39:51 -0800 (PST) Sender: Michael Wallner Message-ID: <54E47A06.3010001@php.net> Date: Wed, 18 Feb 2015 12:39:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Rowan Collins , internals@lists.php.net References: <54E47546.5030800@php.net> <54E477FE.30901@gmail.com> In-Reply-To: <54E477FE.30901@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Scalar Type Hints v0.4 From: mike@php.net (Michael Wallner) 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. -- Regards, Mike