Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109812 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 28485 invoked from network); 23 Apr 2020 15:44:32 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 23 Apr 2020 15:44:32 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3FD2B1804CE for ; Thu, 23 Apr 2020 07:16:29 -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,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-ua1-f41.google.com (mail-ua1-f41.google.com [209.85.222.41]) (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 ; Thu, 23 Apr 2020 07:16:28 -0700 (PDT) Received: by mail-ua1-f41.google.com with SMTP id i5so5821105uaq.1 for ; Thu, 23 Apr 2020 07:16:28 -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=9bVlImUF42k7lrnf5IcWSfIz+gTC0bEWwXcUm5OVuSY=; b=nJ5WVxsQ2cli1RzngzoVSE6PRdibpIjlpRL09Ka+w+jRB0aa9blsGRRqLJfI0rlm+N lUfs/ZK5UJ643xLHGaDrzA37VFHqE/VLeEkldYecCPYrnyvtLSMddb2fQ5x0lYZlN4gD no/lCS//T0OgRAXFhsPPrAJOMEWRZt9DaaTiBUwE8jXew58VUSWBV5MAY7IAl9MH3oLe PZkBsrlTZ1OZuvnDyP/xknGtdtnKE7YqhUh4PCS8xVQtMva2SaIiqrvR5Y4555zO6Qdw BU3CYyMuc9CUbwAtwED311yOnH6mmzz9611FrSo55isiWk4Jb5vhPjPigC+kU+ho0qdY lBKw== 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=9bVlImUF42k7lrnf5IcWSfIz+gTC0bEWwXcUm5OVuSY=; b=UDWxvPKlUintWlwVgpNz+7ZWySYN4W62EO+kNG4+fUmRo8lKMDOm4rjho+MXuhMbmk utV81Rty3hRYYAzK/QviYR6rHnmZ9BIDu9gjvCgsoSmV4Yqid68jJJ3id+BkPOqjZZNI /l0K1MSL1rTSOILUFKloIN3aB0z2R6d/IDncdLe9VX547hbByRaySxH+s51MtQlLq6Wr Eg5QqLSJxIvuOh2Oj2oLKxzphTUszJqIsRAc5EDaj36lMGdrISthm9GqmGrFjep2br3O Tv5o3debWXvonqiWA4XUub4pKVYV6KItN5yqWX0wORUN9PuWKq0q343jNyRy78M6y22E jIwQ== X-Gm-Message-State: AGi0PuZctQWlJpgAS6CQxB9xaqzjBMIZ2xxW+6sspWIVB+SB/k/n7tsJ defTkmlmlKnN39xjc9/fBcDTpD5u5BbsyEyRXTE= X-Google-Smtp-Source: APiQypJdf9McwLi+wm6PvCWKJhqOyk0m5HTVQDb6qyzok5+qI+CpnlaqqU0bAPaeEcT4NhgD24C8303kodudGAg5rnM= X-Received: by 2002:ab0:485:: with SMTP id 5mr3193010uaw.86.1587651385785; Thu, 23 Apr 2020 07:16:25 -0700 (PDT) MIME-Version: 1.0 References: <4c1cd016-1e41-4ebc-afc4-d8d3cd1c319b@www.fastmail.com> <31441489-11c6-4d99-9c53-6ac0e877f268@www.fastmail.com> <73b33704-ded2-4cbc-93bd-17e8874177f2@www.fastmail.com> In-Reply-To: Date: Thu, 23 Apr 2020 10:16:14 -0400 Message-ID: To: Levi Morrison Cc: Larry Garfield , php internals Content-Type: multipart/alternative; boundary="000000000000e0819505a3f5e423" Subject: Re: [PHP-DEV] Any interest in a list type? From: matthewmatthew@gmail.com (Matthew Brown) --000000000000e0819505a3f5e423 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > IIRC, they switched from object semantics to value semantics (like PHP > arrays). Can someone more knowledgeable confirm? > Yes, sorry =E2=80=93 Hack introduced the vec type (with value semantics) in= 2016 after they'd experimented first with Vector (object semantics). Use of Vector is now discouraged. Details here: https://github.com/facebook/hhvm/issues/6451 FB/Hack appears to be in the multi-year process of moving all PHP arrays to one of [vec/dict/keyset]. That's likely not an option for PHP itself, but having the _option_ of a vec equivalent (in this proposal "list") would make sense, I think. --000000000000e0819505a3f5e423--