Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81819 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29628 invoked from network); 4 Feb 2015 15:42:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Feb 2015 15:42:45 -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:55832] helo=mail-99.de-punkt.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F1/00-29377-4FD32D45 for ; Wed, 04 Feb 2015 10:42:44 -0500 Received: from localhost (localhost [127.0.0.1]) by mail-99.de-punkt.de (Postfix) with ESMTP id 05ABE3A2E5 for ; Wed, 4 Feb 2015 16:42:41 +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 u2-mp_vHUTuJ for ; Wed, 4 Feb 2015 16:42:40 +0100 (CET) Received: from [10.53.196.43] (unknown [88.128.80.131]) (Authenticated sender: php@sebastian-bergmann.de) by mail-99.de-punkt.de (Postfix) with ESMTPSA id 8608A3A289 for ; Wed, 4 Feb 2015 16:42:40 +0100 (CET) Message-ID: <54D23DEF.4090202@php.net> Date: Wed, 04 Feb 2015 16:42:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: internals@lists.php.net References: <00c101d04049$ca411ec0$5ec35c40$@tekwire.net> <54D1CA7C.8060204@php.net> <54D1E6EC.7060702@php.net> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] What do we need strict scalar type hints for? From: sebastian@php.net (Sebastian Bergmann) On 02/04/2015 04:32 PM, Dan Ackroyd wrote: > btw For your exact example `sin((float)$x).` this is actually a case > where another scalar type of 'number' which is satisfiable by either a > float or an int would be useful, but that's definitely a step too far > before we have any scalar type hints. We already have a name for that: numeric (is_numeric()).