Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83045 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81351 invoked from network); 18 Feb 2015 11:19:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Feb 2015 11:19:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=mike.php.net@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mike.php.net@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.47 as permitted sender) X-PHP-List-Original-Sender: mike.php.net@gmail.com X-Host-Fingerprint: 74.125.82.47 mail-wg0-f47.google.com Received: from [74.125.82.47] ([74.125.82.47:39279] helo=mail-wg0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BC/5A-18888-C4574E45 for ; Wed, 18 Feb 2015 06:19:40 -0500 Received: by mail-wg0-f47.google.com with SMTP id x12so477120wgg.6 for ; Wed, 18 Feb 2015 03:19:36 -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=MSkqRgVLRisejPOZ9hP38ltkRiPsc8DvYBaBy4TugSk=; b=nbpsHUbsfb9EK12KX05e5IpwdshN30RW3MLvsl2UQmMk+lDI0A2wfQXP8KY9b+PyRG s39zKXLBFP2JPCLqfK6PD5UTP2dciYgwVSQFVl800w3PdXwzwVXMa/gbeJGh+VK6F5mq 44ILKysqRLY2KNKZq6AcZLVyMtMgLxwrVR7jT53Mo5ELK/FAWOn9JbmEEREWBuBbnBa8 T+oH0js3cfUUX1FonS5M2oxpgpO+px2dQZ46+viS7vRQ4DYuGv/UF4SSBnvhJTe5vF6z mECmATGd/zu177Fhxo4yLltsiZ+nsJZWclGedMJNY1tae9ufsKuBM3rnfqet9YzD0hmx JCww== X-Received: by 10.194.75.193 with SMTP id e1mr6936212wjw.126.1424258376540; Wed, 18 Feb 2015 03:19:36 -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 qo10sm32108839wjc.38.2015.02.18.03.19.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Feb 2015 03:19:35 -0800 (PST) Sender: Michael Wallner Message-ID: <54E47546.5030800@php.net> Date: Wed, 18 Feb 2015 12:19:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Sara Golemon , PHP internals References: In-Reply-To: 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 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. -- Regards, Mike