Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101409 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36529 invoked from network); 22 Dec 2017 23:37:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Dec 2017 23:37:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=andreas@dqxtech.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=andreas@dqxtech.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain dqxtech.net from 209.85.215.48 cause and error) X-PHP-List-Original-Sender: andreas@dqxtech.net X-Host-Fingerprint: 209.85.215.48 mail-lf0-f48.google.com Received: from [209.85.215.48] ([209.85.215.48:41177] helo=mail-lf0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DE/A4-10479-A379D3A5 for ; Fri, 22 Dec 2017 18:37:31 -0500 Received: by mail-lf0-f48.google.com with SMTP id f18so33017162lfg.8 for ; Fri, 22 Dec 2017 15:37:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dqxtech-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=fBdDmnwMt72aG2SK+3tf9v6iHCu/hRYlqx1NwmTeBN4=; b=eDPapebhB1j9MpTkhloQUXKeuiYaqIdOI31odUDx7tPYO9eUsaUPZgqvD7bbajpGVN GMURvqEGrZdOKmguVccFBAUjlxttLO9IcR3Nr2KRxo8yn+dOid3XLp1lyoLPOmfgsaUf Z/j/OkK4lwq7Oq1jAeb1D7qOlET5ya2YYb0QuhHQSHMqlGuTadMK2GZbU6pdwyh60Cdq H2NdZOn/BaQ39BKZJMQdFtJxxfU/N86+zyc8+jM0Giu9K4AE+dvsqGLaqRTJBG5rCtbw MgQIlA8+uTGO2bN8fHb/d/qM7KY9Zvo2sT79uA5SyUSO+Axrm7Pz8InZAigPBa5Kk95T 5Wew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=fBdDmnwMt72aG2SK+3tf9v6iHCu/hRYlqx1NwmTeBN4=; b=l+y5I5D/wpKKz0vZj8+dAnFdZlQOGcqHY2eynOWHieThq3AsPvijSyMH9Uev9Hre0W Pqy3nR/B+ST6IvS0tQkrr6T5SYUQK3ZCiKKcJN0Ew8s6p+ENs4+HJ9D6Zc/DvjuHGeVe SnwDGS4QchV8Q8IX1idsehjqIwbnprUn9gfMe2UOVXZvgV+tImJAjUkShtIT9KWAnfOW jIU0WikwxFp3VEXxapWDh5855so/AXDR9HP4kim4LQf4KMmM6i2I/ZWNADCLGYdjAp9B Ivjyxcz/NKrLUeofuI5eVySP780fUYzqI0r7Gh/MvuRq4Zp9BvuxJQM515a/nM82X5rV 2/cg== X-Gm-Message-State: AKGB3mJjtrh2b4VVtRJg0+yGx5L6d9siRNpvW3wFLFU6MqJHdu8xvAuf mG7c8m+3IWaM9Tr1u7NcHUAUewA/ X-Google-Smtp-Source: ACJfBouF0teIPnu7+CrOWRR9eceV7aoxY1nUcIMrEIlTJRHPOW2VJEWA0LnkHuh+9XhC24+sezk6ZQ== X-Received: by 10.25.25.133 with SMTP id 127mr2414724lfz.93.1513985846504; Fri, 22 Dec 2017 15:37:26 -0800 (PST) Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com. [209.85.215.54]) by smtp.googlemail.com with ESMTPSA id h97sm4737795lji.77.2017.12.22.15.37.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Dec 2017 15:37:24 -0800 (PST) Received: by mail-lf0-f54.google.com with SMTP id g63so10999275lfl.11 for ; Fri, 22 Dec 2017 15:37:24 -0800 (PST) X-Received: by 10.25.90.80 with SMTP id o77mr404979lfb.29.1513985844046; Fri, 22 Dec 2017 15:37:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.201.210 with HTTP; Fri, 22 Dec 2017 15:37:03 -0800 (PST) In-Reply-To: References: Date: Sat, 23 Dec 2017 00:37:03 +0100 X-Gmail-Original-Message-ID: Message-ID: To: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] Mixed Typehint From: andreas@dqxtech.net (Andreas Hennings) > I think that a "scalar" type that "groups together" bool, float, int, and string would make more sense. This would allow the expression that something is not an array, not an object, and not a resource. Why would this be an either/or? I don't mind a "scalar" type hint. But this could be a separate discussion, and is not in conflict with "mixed". On 20 December 2017 at 13:56, Sebastian Bergmann wrote: > On 12/19/2017 04:34 AM, Michael Moravec wrote: >> >> I'd like to propose and discuss Mixed Typehint RFC for PHP 7.3: >> https://wiki.php.net/rfc/mixed-typehint > > > "mixed" is too unspecific. I understand the reasoning behind wanting > "mixed": to express explicitly that a type declaration was not forgotten. > > I think that a "scalar" type that "groups together" bool, float, int, and > string would make more sense. This would allow the expression that something > is not an array, not an object, and not a resource. > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >