Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109799 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 27428 invoked from network); 23 Apr 2020 07:01:40 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 23 Apr 2020 07:01:40 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9D16A1804CB for ; Wed, 22 Apr 2020 22:33:30 -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,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-f52.google.com (mail-io1-f52.google.com [209.85.166.52]) (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 ; Wed, 22 Apr 2020 22:33:30 -0700 (PDT) Received: by mail-io1-f52.google.com with SMTP id e9so5103700iok.9 for ; Wed, 22 Apr 2020 22:33:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datadoghq.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=f1tWx0jm9CILp+askMHwabjkbfss0yzDWtqGDp6Mr+k=; b=IKQ0E5Ja+NNVyy7W2uuQk6hcbSV9KDXHJ6ElPyRwrvbPqHGi2n6+7PHPpejBMttjzr aVREBfvf8l4hvlxjMjRLzH4/ESWUrZEyiv4uXBeWcWbnQdlmfJm06IckZAhwWP397RwW z7ixbbdLyTPZR1jZlzvZXZgytUkIjYWph1p+Y= 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:content-transfer-encoding; bh=f1tWx0jm9CILp+askMHwabjkbfss0yzDWtqGDp6Mr+k=; b=g4p1SYQ/IG4Z3MhcubHSLkitADFr0qGIzkLwHXcuiWeF+Gmjp3vdWManCqxA0LnTYc u/w3paiOZ/jbjApEtq0zBCuWW6uPN2DJJRLIFH8aGRgxZX2XxwGeShXdWvaj1iSgCnAv WuS5AevtlYJz50P40v43kpcGRbH1CvHDuzyksDRRZxIbVxCdWHjnlhPxJXP5Zu4m60Vm gMbTiG8m8smO+1L7euZr+mIWMOCBc02iTzL7bF1FGZhypNlj0aCZzIfkksP9vUx8jcXW wtlPYuyfHAGdunNmvhGRtzjD5vsbj6iYVvKs1JHgC1dSNNM0NeR8nwrOGuE8bGknixyd 77Vg== X-Gm-Message-State: AGi0PuZKEpifsf5m+tknHFq7EDKOtO9Fm6eO1aJbMLcwiP0o0uBI2bTu Y8mABXNqLeiC7MiCjJzBTKNQV+eNEZayCghBMO0LwA== X-Google-Smtp-Source: APiQypIBY0JPw1JFCBsXcTBcl7huCrbe5c0IaBOpba2Av7e0t6sbSebO3nK3xshVDjRZOFz3rtctH3Cxnf+33russZQ= X-Received: by 2002:a02:7085:: with SMTP id f127mr1791084jac.58.1587620005197; Wed, 22 Apr 2020 22:33: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: Reply-To: Levi Morrison Date: Wed, 22 Apr 2020 23:33:14 -0600 Message-ID: To: Matthew Brown Cc: Larry Garfield , php internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Any interest in a list type? From: internals@lists.php.net ("Levi Morrison via internals") On Wed, Apr 22, 2020 at 11:03 PM Matthew Brown w= rote: > > > This is the *design* process for a language, and it's important... > Stepping back to reconsider how collections work generally, and how we ca= n > improve them in a graceful way that leads to a clean end-state, would be > very valuable. > > Though you have much more experience with internals than I do, I think th= at > building a consensus around a bold new vision for PHP collections would b= e > a near-Sisyphean task. > > Adding a list/vector type would be a much smaller, more easily definable > task =E2=80=93 it was one of the first new types that Hack added, and by = all > accounts they're pretty happy with that decision. IIRC, they switched from object semantics to value semantics (like PHP arrays). Can someone more knowledgeable confirm? > > > Should we also be adding a dedicated dictionary type as well? > > Maybe? I think there'd be less to gain from a performance standpoint > though, so I didn't want to lump that in with any list proposal and risk > derailment.