Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114493 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 61550 invoked from network); 17 May 2021 08:49:35 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 May 2021 08:49:35 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 39E6F1804D9 for ; Mon, 17 May 2021 01:58:49 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 17 May 2021 01:58:48 -0700 (PDT) Received: by mail-ed1-f54.google.com with SMTP id r11so5871628edt.13 for ; Mon, 17 May 2021 01:58:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=azozCH37it6NQDPSXddYeLtyzIVcsZxcv3B7jhJ2ZYg=; b=CXzwP7puloGmQzcX3W+WtKw9tJxOOJK38+0WVuOBYHVQjbEFFqTtGC3TmrTWotMD8j WhXpW/YVy4xQA2WyNM7W2ciOy3YXCaSEaB4xHZceVxQ624P9CLzzO2Ue+lEUimaKWba2 gDXKgK+bdEKmjChEQW9SDd6VvLVQ1SaE1N8aSzzV3yOuf4iDIKyFR8n/okIHfk0Ha3/J Xh/gGwVKydcrY6u/q1mgRxu340868I1bayr/3+rZ2rNffP7pjPH/45bvxqZ0ptBbwtbn T2MS8QSzxD1Vyb94g34QcJzbY2AOO9S2ECxhbbdcpSxC9m+1sCAkAWdtdzTuWZ754aEz S2tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=azozCH37it6NQDPSXddYeLtyzIVcsZxcv3B7jhJ2ZYg=; b=FDzFirdYmRi7EMJcG/LuE5S8R2lkXlEtytCnMpwsF3cdfuXe5sFwQa1BxYORzpEwu0 AIkUxUaDglgZVHGsW+ksyM4Oj4bU0OgfN2ihVfyvREcU4y08RnOP1EuG6nr/EMvgnNic FvKv4S8h+Fg6xUxjg8xrvkvRbU9O0htVYZO5ZJvnbvfZQnwzCt9iS99cv7sXDuhQ/hia g7r3Fh4OiF/Ux/kuG4Wiy9XOYjtWc/AG8XUC/X4FTP5BDoAXvYCyJo6picP6EjZhntQS 6PEB62qR7J2beYGY7PnC+rjb89+kVLEY6mW8p1FMnn2qPrn7sDvX/6vuOGD1F1f+88i4 wkXg== X-Gm-Message-State: AOAM532s2mQnirt9PFtrmniIR/IaliVzdN+Ke6Vkfhy025oYbqcVFhlF ClqEuKPaIvMVPncVQgOXqoWjLeuMbreZB4hUXfsPweti1Fg= X-Google-Smtp-Source: ABdhPJzPkxdIoYeXVoeBmzpy1v/LvVFNiJH6mCKLs7vC3GMeTAG5B/xYCN0cEgjz0CD621LG9iRIvzp7lkXdI6lCogQ= X-Received: by 2002:a05:6402:26d6:: with SMTP id x22mr45178899edd.88.1621241926669; Mon, 17 May 2021 01:58:46 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 17 May 2021 09:58:35 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="00000000000022585c05c282cde4" Subject: Re: [PHP-DEV] [RFC] Pure intersection types From: george.banyard@gmail.com ("G. P. B.") --00000000000022585c05c282cde4 Content-Type: text/plain; charset="UTF-8" Hello internals, As we are getting closer to feature freeze I want to move this proposal forward. The RFC is now also on the wiki: https://wiki.php.net/rfc/pure-intersection-types Composite types are left out of scope as it seems they should be handled with grouping (e.g. (A&B) | C ) and not relying on the precedence of the union operator. It should also be noted that to get this working there is some parser hackery done to circumvent the fact the it cannot resolve the ambiguity between & for an intersection type and & for by-ref arguments. Best regards, George P. Banyard --00000000000022585c05c282cde4--