Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83047 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84674 invoked from network); 18 Feb 2015 11:31:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Feb 2015 11:31:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.49 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.49 mail-wg0-f49.google.com Received: from [74.125.82.49] ([74.125.82.49:43746] helo=mail-wg0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/0B-18888-F0874E45 for ; Wed, 18 Feb 2015 06:31:28 -0500 Received: by mail-wg0-f49.google.com with SMTP id l18so524634wgh.8 for ; Wed, 18 Feb 2015 03:31:24 -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=zRcYjD6tmYq/0pkr9Z8ZMCSw8wx3SOKwlBVMqNkm7Bw=; b=zIEe5M6XSLUGOnal3WyOifRF4kbGZ2amOZZtC9GNbZ4yCpfZyKoDwe/nXm8ocTrZwZ OQoQ6yZIMvYXMsrgnqfMlNQeCFeMuqfpHF0wWD7uFZLgPaSSMRUOn367nFmgGivosm9K i+d7JNfA2lQSYW1GX6DYATCMqhZn7qvTCYsLJhL0w6yx/vfzW0XY1Bq51qE0exoyL8Hw L7Vk5i/2Pn0LC4lpXxmVS5UMIzBFkb4HXJvYbr3nHjWd1HXL6z5A7kfszfNBI6Odujv8 dZjMK1CapBBpHfS0F+5hEFUBmNc/GXqW5gqeU+mBZNrFVrEKQlrU3fwERlJ6fTw2p0Kq SAAw== X-Received: by 10.194.57.199 with SMTP id k7mr72698868wjq.1.1424259084192; Wed, 18 Feb 2015 03:31:24 -0800 (PST) Received: from [192.168.0.172] ([62.189.198.114]) by mx.google.com with ESMTPSA id a1sm24979853wiy.10.2015.02.18.03.31.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Feb 2015 03:31:23 -0800 (PST) Message-ID: <54E477FE.30901@gmail.com> Date: Wed, 18 Feb 2015 11:31:10 +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> In-Reply-To: <54E47546.5030800@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: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. Regards, -- Rowan Collins [IMSoP]