Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101426 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35476 invoked from network); 26 Dec 2017 19:15:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Dec 2017 19:15:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.216.179 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.216.179 mail-qt0-f179.google.com Received: from [209.85.216.179] ([209.85.216.179:45914] helo=mail-qt0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5E/F5-58518-2DF924A5 for ; Tue, 26 Dec 2017 14:15:30 -0500 Received: by mail-qt0-f179.google.com with SMTP id g10so45766092qtj.12 for ; Tue, 26 Dec 2017 11:15:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golemon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=kmGUsUM7EeHDrHla0oWfrAo51ZYIn8zXbkzdQiP/lYA=; b=qw7eP61W8xpIpUNIVbcfRc2Nzz5NFLLfUKJhRP2Fpe1PP3NkLw7Je8hvazWHs3DXoG INoWBAY6BG92DvibS8tmEvl3LpjZ79fh9ze07q466F4HtCjngRz2blgSuOdtflgWEU4I jPWA2cNaeofGmS7CHbwidIkUeVM+kFrB+9OAZsUWVHDPbyD+fEnZKk7mP7jiQrHUxpjW 5rTeVtonGSPgXwCsNRefBthTg0iyMqln9aoboqKCi90AqCThHAwTwE4Owh1ymQlT7eJt MCjii3o2q8DECxzvDdWz2d4KTcwUb/5+hkIYh08WWQ3GhUUQiGy9E57zAyh1b19wISPG Xopg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=kmGUsUM7EeHDrHla0oWfrAo51ZYIn8zXbkzdQiP/lYA=; b=llfH5OddbCGDpBIvK4Kenqcbj6naGA60KIFPSYTi1nhXMJfPQXg+3awOmLzDGAWyiA tcXP8HkmrZVdwuAiWmuyy7ZeXvMwa66/uztMGditpTDOuIRAedNQgrq+/FKUm2qxFxeo SQJMHLcnfM23goCTHDdFgCx2jGzW1eLFfChG/TpeiYGP+WfX1zgAXla4jmIAGaRbftf/ QKH5fvsu193WWSRbICVXTFVvRXE242xL2+q/sE3gKtlGdsYPzMm72dD3sXSo1ew2dB2Y ZwHdgCQFa6RNw04A0fOfXv83HpdQp0XP/qJrrxrzkJ47tDXtlddd7PTy1VWLcxuVQq+w 4mBg== X-Gm-Message-State: AKGB3mLLUvC2TClMbri8QXriZ+Aj6yHMbIqjjUS5aLfEQmkOlk2CJIA4 jKoiP786QKDAtHQmUakSfFQkjLSnZdukahMfLNmVbXDt X-Google-Smtp-Source: ACJfBotnF/G7HDkulSSBclOCh0aO8c+ej0SLdxVg670WI2MrfFiJuqIuJvf0gYOwC8WM5jcRDifYTvImJnjY5MQyyS4= X-Received: by 10.237.59.184 with SMTP id r53mr16160613qte.306.1514315726995; Tue, 26 Dec 2017 11:15:26 -0800 (PST) MIME-Version: 1.0 Sender: php@golemon.com Received: by 10.12.158.145 with HTTP; Tue, 26 Dec 2017 11:15:26 -0800 (PST) X-Originating-IP: [206.252.215.26] In-Reply-To: <6894aa94-0400-7a9a-f00c-47f1f556a4d0@php.net> References: <72392123-d37b-26df-6886-218f48205f8a@fleshgrinder.com> <5171148a-3554-35a3-ab72-370e1aac4a3f@php.net> <6894aa94-0400-7a9a-f00c-47f1f556a4d0@php.net> Date: Tue, 26 Dec 2017 14:15:26 -0500 X-Google-Sender-Auth: FPKO8Zw9HtJwKtfGFkhTbBwlvMY Message-ID: To: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] [DISCUSSION] Scalar Pseudo-type From: pollita@php.net (Sara Golemon) On Tue, Dec 26, 2017 at 10:56 AM, Sebastian Bergmann wrote: > Am 26.12.2017 um 16:46 schrieb lists@rhsoft.net: >> would you mind to explain this? > > "Foo|Bar", "array|string", etc. (still) make no sense to me. > > "scalar" makes sense to me although it is but an alias for > "bool|float|int|string". > Would you feel differently if we combined union types with type aliasing? use Numeric = int | float; function foo(Numeric $bar) { ... } -Sara