Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116086 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 67968 invoked from network); 18 Sep 2021 07:00:28 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Sep 2021 07:00:28 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C28C41804C8 for ; Sat, 18 Sep 2021 00:40:36 -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=-0.2 required=5.0 tests=BAYES_20,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-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-io1-f49.google.com (mail-io1-f49.google.com [209.85.166.49]) (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, 18 Sep 2021 00:40:36 -0700 (PDT) Received: by mail-io1-f49.google.com with SMTP id y18so15176861ioc.1 for ; Sat, 18 Sep 2021 00:40:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=0DcTJAwK2Te1hlqdyBRnblcnPGLdxN/VwqMc9pYnnwk=; b=hnL/Tei+C2fy9ICTeDqrc7yI44ZpLu3oJp00SpBlliGulniFZMvALBv6GafWwKfcqs MIhVMokAQg3DzNqSnM9qU1BXT8ahfrwz8FtrP3BnSTK6ncm7+R3RW2TVnIoouQW2796G rgyzKgVW+4o0nq7gWENs6TdSLRUqS+UoqSPGbBsSkBAQiLRSbT+nQo9nLP/rQhUjY6jf qhIkWQiRbS+g5VbAm25po1/CemcH2KLW/19yw0c1q0aYLWKRzo4337hp7ZgyQEhpiXkN TPxWuTLK7XziMoqdvKJg56B7lyJ4FnxP0pocfpbPwU9C/mssD3JMa4lySMlFPQJZYRIn 1Bhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=0DcTJAwK2Te1hlqdyBRnblcnPGLdxN/VwqMc9pYnnwk=; b=aBEZ/rrnbt4+ZZgltZTxwNUUcUgxKEo6+GFj7zOXmAg7/6wqDOLTqDjjtMdikKbhh1 LhUt2qwv4CvQutYzNJdL2nj9woMg4BQSN5MwTn30kwwgXZiwCK2OJ7O4vJ9XEjm5yVyJ xA40SDN/BLxl+w02XYw87QD40KX6FrhK2Q9CBeOpYJqwT0UxxkcRxr4B2qkKRsFwGPCY LlSO8yUhN78GHeR2hVqU2ICQdp9ZPMz28Dc1lU+dsOBX5lmvXPg+3vQP0ieiW2EHN8fV P7kDQs1NwXHZx53Wm+TjTYEwUS+NirW7LFGWJYw1+1IlqE1PrzxQHdjvwY6TryRfhffe 1FWQ== X-Gm-Message-State: AOAM533XhRsf0ZfOL8jKQ/VH8WL/MHv2qXW7J7gyFxVRrqbMb9T284yR qJi6FncYJbb4Ofw1GvyVjh7+4nB4X/4= X-Google-Smtp-Source: ABdhPJy6sdP+0wmnLPayBW80gWiaV5OEIJVd81vXVDXwJd9LLcPR5GehnNrPvX8sIROXLhK8LsNnXA== X-Received: by 2002:a6b:5a1a:: with SMTP id o26mr11645110iob.40.1631950835508; Sat, 18 Sep 2021 00:40:35 -0700 (PDT) Received: from mail-io1-f41.google.com (mail-io1-f41.google.com. [209.85.166.41]) by smtp.gmail.com with ESMTPSA id k5sm3565077ioc.7.2021.09.18.00.40.34 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 18 Sep 2021 00:40:35 -0700 (PDT) Received: by mail-io1-f41.google.com with SMTP id z1so15111623ioh.7 for ; Sat, 18 Sep 2021 00:40:34 -0700 (PDT) X-Received: by 2002:a5d:8b4b:: with SMTP id c11mr11686835iot.98.1631950834718; Sat, 18 Sep 2021 00:40:34 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 18 Sep 2021 08:39:59 +0100 X-Gmail-Original-Message-ID: Message-ID: To: php internals Content-Type: multipart/alternative; boundary="000000000000cb6f6305cc40294b" Subject: Re: [PHP-DEV] RFC: Add `final class Vector` to PHP From: phpmailinglists@gmail.com (Peter Bowyer) --000000000000cb6f6305cc40294b Content-Type: text/plain; charset="UTF-8" On Sat, 18 Sept 2021 at 02:49, tyson andre wrote: > > To echo Pierre, a Vector needs to be of a single guaranteed type. > > Yes, this gets us back to the generics conversation again, but I presume > (perhaps naively?) there are ways to address this question without getting > into full-blown generics. > > Yep, as you said, this type is mixed, just like the SplFixedArray, > ArrayObject, values of SplObjectStorage/WeakMap, etc. > Please rename your proposal as the use of the term "Vector" is confusing for people who use them in other languages. Much of the discussion so far has been around whether it's a Vector or what it should be; changing the proposed name will allow the discussion to focus on what you're proposing to add, not what others (myself included) would like to see added to PHP :) Peter --000000000000cb6f6305cc40294b--