Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108209 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 21527 invoked from network); 21 Jan 2020 23:12:43 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Jan 2020 23:12:43 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 163CD18053D for ; Tue, 21 Jan 2020 13:21:25 -0800 (PST) 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-yb1-f179.google.com (mail-yb1-f179.google.com [209.85.219.179]) (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 ; Tue, 21 Jan 2020 13:21:21 -0800 (PST) Received: by mail-yb1-f179.google.com with SMTP id x18so2085340ybk.6 for ; Tue, 21 Jan 2020 13:21:21 -0800 (PST) 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=xd6GS1jf1mjcz/7qkzlICabGAMrZEoQftC+Xw2tPUII=; b=uWy/p/oQbHzjpfpwgUGaXS/UTBf6gGlaRrF3/jpkUjMKBIonxiHhfTaMmRV8PqtzfF ei6h786VmkIc6JYU1FH2nDXnCSj5TbUyVwJc8hyLeA44N6uhlSzUNqjaNJ7VmzLyCCVD w/rI+WtUM3veXAgs5mHSnqyujf/56eggM6rB1P4hrd+Huewy1AkZw1bmfNHOdawTidz5 fKAYlsSn46Tq5s+BZsQwi4aEjfN2r2DV+wVst2v3jkSaIatm/1SGIF4AhbiJRdWrmRV8 i+9iw0YXwrL2+ERrHKhj6aUkvpMuwb85TWJQ2AeVtnripyJHlKyfQ1Yts6FAmz1+G1Cg yUyA== 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=xd6GS1jf1mjcz/7qkzlICabGAMrZEoQftC+Xw2tPUII=; b=NNzOv0mtRJyvwrREY82gs2UHjL5KH/PkdXJV8rZ6Lcc32talOe1uRbm0hc3BL7vJij w1llD0mfqmw3vsbhKQ6JIrh2CiRyVLTobYMivYThiPq5D8ueD8yGzzADLHZu3kwYxBhH NzYWloiAC4T1h55Nun2QmGBwmxQhN6HKEV7mPqCjP9wqC2Nownz0JsCU2LzviUqWD6iw G4QsSBF1pzglnGU2oMAyvnAHEIeGjXSz92vZDRLV+xv1QhC8+BY/hSCmSIdpKux2EyoY PaJDQERcaf9CMxGEebLw5FjzDS8YjSuBtjoXUOfQ6hh5Tci2AetW6MqK5AMZ8Y29hIjM kvaA== X-Gm-Message-State: APjAAAVJOF9G5jfXpRWiYicxcKi4ugv834Cp/KJEcopLX/Dlvv0uI+CA sGcyz67alZX+EeftbZmSWUj8WLCTUNr1oEEcR5g= X-Google-Smtp-Source: APXvYqwveZUyaAVmjA2WPW3XM6qnHel0/CS7Xg5Ufe02Okh6gJbMfjkpVgfR6z9Fi+Sk7fiP0FxV1+4Rjik/4hzQi3A= X-Received: by 2002:a25:3406:: with SMTP id b6mr5267692yba.134.1579641677293; Tue, 21 Jan 2020 13:21:17 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 21 Jan 2020 16:21:06 -0500 Message-ID: To: Nikita Popov Cc: Aran Reeks , PHP internals Content-Type: multipart/alternative; boundary="0000000000000c3017059cacfd40" Subject: Re: [PHP-DEV] Typed array properties V2 From: matthewmatthew@gmail.com (Matthew Brown) --0000000000000c3017059cacfd40 Content-Type: text/plain; charset="UTF-8" > As far as I know, the only viable way to do that is to make the array > intrinsically typed, which means that types are validated when elements are > inserted into the array, not when it is passed across a function boundary. > In other words, array generics. > 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). --0000000000000c3017059cacfd40--