Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109709 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 2460 invoked from network); 20 Apr 2020 00:22:37 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Apr 2020 00:22:37 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9259E1804C7 for ; Sun, 19 Apr 2020 15:53:39 -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-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-vs1-f50.google.com (mail-vs1-f50.google.com [209.85.217.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 ; Sun, 19 Apr 2020 15:53:39 -0700 (PDT) Received: by mail-vs1-f50.google.com with SMTP id h30so4395647vsr.5 for ; Sun, 19 Apr 2020 15:53:39 -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=4ErvM3DCBOMNGMHTDjmVaG7rQ+Bgv/zxgFqeLioCKz0=; b=H42SCQ+q3nP47PWBkzrK86eDId7TlOfTZRO2GDUBJq2n0O7p55B+scflwhvqMS4KZJ WMhKuvbW50KCLEZYhboPmLGvqwyD/FgGu4kIo7plaiJOOw1aiQQhxa5vZRDLtmxHl1AC ozlzns8BG48oDXOp+TaTByUIX0F7zVlUJmOTxRm7ILE28MpGm8xyqee0K0gePnKNNyjj FeQ3eo2LYlhNWBMFkpS+jXo9QQVqDcJqfa0vuiYNZUnvb6pe2nJ+BtfB3gjyhm/Fc/N+ HZ1MJEFotX8VKKo8GJr1j63ACVwyXtnZd7ZNcK8JZxpc0mYB8wVKu1wtNfSjZbhsgqQD Uczw== 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=4ErvM3DCBOMNGMHTDjmVaG7rQ+Bgv/zxgFqeLioCKz0=; b=f8UxUau2mkAQqsCyJFv7NCBZW4P8G7pzC4A9eXAGUhDjeDS02eTngsoGlRnW8b/x3J 4FTHXp7ITAMRK87ZE5yIt8jtl6xFHwErSaRBce3P40Qxa27bmOzBl8sEUpAvBKQ4zyMJ v/s9Q+uy+tfD3CPLcbUuhzxn1oZ/h/q4U5aLAO7cEPcTKJ4m/kbVu0eiBjyqX/qtWjyR QNQ1VyHxEW6auDAsV/5j8XAyNgxazlS7pLL/wPVz1KlG2Ee9oVVO97Ohg+UhHJ8uxVc9 gzVIveJh18xZTEE7Fbr96IGrcmZHvYx9bob/rGYKwIArBREeccfbA26XfqSzi5K5Kyo1 evgA== X-Gm-Message-State: AGi0PuZui8iqz412fgyN2C13MKRMiHJv7vBiGr90fS/e/70euMj6CxCc 4kEbQB3/fE0leqnwtoE77myIlf+DY9edYHVcSV49bw== X-Google-Smtp-Source: APiQypIyGaqXfwsENq6eKUnbCTqI18FXLlD18cKe7wJagxo6CMzi6wU+ghLPBmQ43Y0MEN30efj0D9/+j29/Ic1Vqz4= X-Received: by 2002:a67:31c4:: with SMTP id x187mr4151002vsx.166.1587336817984; Sun, 19 Apr 2020 15:53:37 -0700 (PDT) MIME-Version: 1.0 References: <11e910d3-8dbd-55ad-984b-516eba52b68c@php.net> In-Reply-To: <11e910d3-8dbd-55ad-984b-516eba52b68c@php.net> Date: Sun, 19 Apr 2020 18:53:26 -0400 Message-ID: To: Internals Content-Type: multipart/alternative; boundary="0000000000002ccea905a3aca798" Subject: Re: [PHP-DEV] Typed array properties V2 From: matthewmatthew@gmail.com (Matthew Brown) --0000000000002ccea905a3aca798 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yes! Though I don't necessarily think they need to be genericised (e.g. list) in the language itself =E2=80=93 just having those alternate datatypes would, I think, be a boon to the language itself =E2=80=93 with l= ist (a subtype of array) more useful to me than dict. On Sat, 18 Apr 2020 at 10:51, Sebastian Bergmann wrote: > Am 21.01.2020 um 22:21 schrieb Matthew Brown: > > What if we left the array type alone, and instead focussed on "list" > > type and "dict", "dict" types? > > > > That would allow a clear break from previous behaviour, and would allow > you > > to introduce other changes (e.g. removing string -> int coercion for > > numeric string keys). > > Just to make sure I understand you correctly: are you proposing new data > structures, names list and dict, in addition to array that can bring more > specific / strict semantics? > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --0000000000002ccea905a3aca798--