Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115732 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 43013 invoked from network); 15 Aug 2021 02:01:44 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Aug 2021 02:01:44 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id F23071804BD for ; Sat, 14 Aug 2021 19:33:20 -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_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) (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 ; Sat, 14 Aug 2021 19:33:20 -0700 (PDT) Received: by mail-ot1-f50.google.com with SMTP id e13-20020a9d63cd0000b02904fa42f9d275so16927359otl.1 for ; Sat, 14 Aug 2021 19:33:20 -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 :cc; bh=fOEPPNKYXGFDYrxS8tNZ/fLMNL/Y8xK9zmPP4U0s5Ns=; b=d1snftRUbV1L9zN8iqfQ2EaAkb+qDn8A0Tx7fld+KfKskH7uEoaxhozfiAguUQyCkU P2xTybyfnTow1dyaAHLTkUp0003ZKcnNBO+PGGBYzBPCSsoC5KAK/D8Ph/TVK2ilRjEu iBhPBpdYxO/QxFx+ihKbwwNSyPRMNLqCVuUYNvxDLTPgtUyyJ7xW6M25okxNSL0vrE39 lvu4t70MwwJHyNI9QKzQmbNOhiOtLOJeySJonQ0ttsHVuS3w4PZmD0xEdhyQGLoncqCv 65HuuV8p/o0xpEnx/x/G3QCM9tGUvS3E+8o1PwuITl7lnBMXeOzbnI5MfARclkEpB10+ QLPQ== 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:cc; bh=fOEPPNKYXGFDYrxS8tNZ/fLMNL/Y8xK9zmPP4U0s5Ns=; b=g0ebMTXw4v5P9jZMIItVE6brykowYBdEYxWqRt1eQ+UIp1tz0N3RphEhQYxbv/IGcy qtcjHV+qhW5iqu1j0t0GYfmVvAXatLlD0EiOyJIYSLr0GfEG6P9gEuEtHfVFNXkEwL4C K+HG/nWc63wqDWRiquz0gSmvdUQWznciPpfMdkq5KlorPJp/BK0CbeP9fR5gfnUH2tf2 qOYSNP1ZSkQiFFoovW+quttQUFP8mJxkprgpLXRuecnfk7BCE+PyjWICnfaWCXemuQSe 95vI7G0gf8J27K59X1WJMQBYRL1wjolfNQg0oTphPpi0p+uPt1ajfrTYmSm+nSM6z6av cwzw== X-Gm-Message-State: AOAM531y7E5UpQu9vLnoJRGyqxOm9zxxP86tDkRBP0SYiTqD6sFqp4D0 1rLtO9sDAh7k+n31uGH/TVP1xxat0bCT4MK+A7A= X-Google-Smtp-Source: ABdhPJxbg/Wktph5Kt5Jwn4bhferjDAgwNLlqeJ0r7VJkHn0p/VvsELncFXPfM5G+zZ4Ru0KyX8h3tChPquITzh/qqE= X-Received: by 2002:a05:6830:20cf:: with SMTP id z15mr3364341otq.7.1628994792918; Sat, 14 Aug 2021 19:33:12 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 15 Aug 2021 04:33:01 +0200 Message-ID: To: Nicolas Grekas Cc: PHP Internals List Content-Type: multipart/alternative; boundary="000000000000f9131105c98fe742" Subject: Re: [PHP-DEV] [VOTE] Nullable intersection types From: ocramius@gmail.com (Marco Pivetta) --000000000000f9131105c98fe742 Content-Type: text/plain; charset="UTF-8" Heyo, just a follow-up. On Fri, 13 Aug 2021, 13:30 Marco Pivetta, wrote: > Hey Nicolas, > > > On Fri, Aug 13, 2021 at 11:35 AM Nicolas Grekas > wrote: > >> Hi everyone, >> >> I'm happy to announce that the vote for nullable intersection types is now >> open: >> https://wiki.php.net/rfc/nullable_intersection_types >> >> It'll close in two weeks, on the 27th. >> > > I voted NO on this one. I'm not opposed to nullable intersection types, > but not in PHP 8.1. > > Specifically, I'm waiting for the first RC releases to land in September > to even start looking at PHP 8.1 support for any of my projects, and > stability is key. > > I also am not on board with the lack of design around reflection API here. > I just re-checked the RFC, and I'm completely against the reflection design in here (which I previously dismissed as "oversight"). An `(A&B)|null` is **not** a `ReflectionIntersectionType`, but should instead be a `ReflectionUnionType`. Therefore, adding this to the "NO" reasons, since we'll otherwise have to live with this mistake for many years to come. > --000000000000f9131105c98fe742--