Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123891 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 8CE2B1A009C for ; Wed, 26 Jun 2024 20:53:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719435300; bh=4v8gnR5t92DXVo25ZgOkuotxspfZu3oNdTQkIssReZg=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From; b=VXMCH6z6RD8iL7kaJGHfExWaZJofVhZzsVe+UjpAK/CpWzAXlu/Q26Gb8lNm3DZhw bOICCSSUqz+cYoLG8A9kgDUYs4Q8UbhNR8OXIgSV2feOmBnuxZhlLnkRH0p66doqYt Lopt++14N449s2kARXj1ZnFCdwpT0R9fcqrILnWWUI4fTzKbxTbYZ8cA0F1f6O7552 /kzlusijTtTXbX+Am3Q8a4mGAatw81MzlUQ9c1Co50HfUtouuYh3fTcZQj4opAIJpN 2PPQ6Z9BxJ/ubcLRzPfM7sYsCOlxto+7wLFY9RYWZ0qxwWyM/5+wwoTWQPZnQlHjsp GNxNx48Ijb2dw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3BBC0180082 for ; Wed, 26 Jun 2024 20:55:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 26 Jun 2024 20:54:59 +0000 (UTC) Received: by mail-io1-f48.google.com with SMTP id ca18e2360f4ac-7f3d3f1294dso38892239f.2 for ; Wed, 26 Jun 2024 13:53:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=miles.systems; s=google; t=1719435221; x=1720040021; darn=lists.php.net; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=67LKECIBM2h1HXETiOEs1K/kQK7GmAFFbndwxCUrcfU=; b=fL/wfzhF3RfhUMZR2PDfr7PuPTRH+JXtUssXH5OCHqxc1zvJ95/5yMdSOMsl1duHF1 YPyk3YJRJ7J5mJwJF8Y6iEuHLDHynIYOvdtpeWD+VE9Csn2fvAyXEeeWk/wZKR17aRyp QMXtkCK9xusZa4dUIZE2KnIZjGyMZN8xEaj1W98BzFwQhuql/00ZQaEaG4La8FqR0JuI DnsrDOR631tNVmVUnv8n4mdTWQsdTDM7UZqg/arlXt1ZXgzJcjY1/txYMcDhbK8rLkl0 OGvLb3FjVcTxaKIuiMZzoJ73nE2YOmiqpToTvS/eYeTgK15E0EDGLHsIlaUPNNzK4u8L VNSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719435221; x=1720040021; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=67LKECIBM2h1HXETiOEs1K/kQK7GmAFFbndwxCUrcfU=; b=aJ5lL9/qYVs+J4OWP84EmFg7FUOunGKsisN0N5WEE6cVKCNL5izbMNU9XBkZ7vcx6G uvuIggsP0JFozCswB/OwbbAaEiTlNkOX6KlA9FJehfuWYIUkVgpbiMtg9lAu4YJckaSx iHdsl6mna4HdM0QhW0xBHGEnv8IoYm/XsewLm+GaNGAanvdJcg4c+RDonFMdFunDRZnj RIFr0qulev+hy4WQboy3QtuU9UG8dVdXPPZh1mk6eN8+gz98mSxoQfQNgmJLtswt1u1H 0tj0iaI4UvVJ3DMJzcexIZU2w3rQ6ShuMpMsZnGMWGo3Jze1E9fNr0D4sPGrr6pNoArW MoeQ== X-Gm-Message-State: AOJu0YwhcsV+bdt4rLyqT64egCpXGaJ6QBTL9bTprp597LFR56Dp5YxV CH2mtj/oGNcHHdWDmkc6bcBh2WXQEZkfjSr8TOyXdPiIoXWX8Rq/yvmwQ3jJoII+BRat1gRhfqQ nEXU= X-Google-Smtp-Source: AGHT+IHq8nu486azh/QcQbTgYe3vjv3fZv9CnN5xEzFeMXvQrsHp0szXKm/61aJDKCAqtwYQ1QmVtg== X-Received: by 2002:a05:6602:1681:b0:7eb:6d0a:613a with SMTP id ca18e2360f4ac-7f3a74a9ddbmr1504250839f.2.1719435221257; Wed, 26 Jun 2024 13:53:41 -0700 (PDT) Received: from smtpclient.apple ([2601:283:4600:6770:1058:1c9c:6c8b:173a]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4b9d124dffdsm3374604173.174.2024.06.26.13.53.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Jun 2024 13:53:40 -0700 (PDT) Message-ID: Content-Type: multipart/alternative; boundary="Apple-Mail=_166A8DAC-6E9B-434A-8446-D709B84A5416" Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: [PHP-DEV] [Initial Feedback] Typed Arrays Date: Wed, 26 Jun 2024 14:53:29 -0600 In-Reply-To: <3a69d82a-4974-4b85-a4aa-3b11f5e1391b@scriptfusion.com> Cc: php internals , mail@dasprids.de, rasmus@mindplay.dk To: Bilge References: <6D0733B2-A1D1-45EC-B93E-029B1616A22F@miles.systems> <3a69d82a-4974-4b85-a4aa-3b11f5e1391b@scriptfusion.com> X-Mailer: Apple Mail (2.3774.600.62) From: richard@miles.systems (Richard Miles) --Apple-Mail=_166A8DAC-6E9B-434A-8446-D709B84A5416 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I looked online, and I see two RFC=E2=80=99s relating to generics. One = talks about arrays specifically.=20 https://wiki.php.net/rfc/generics=EF=BF=BC https://wiki.php.net/rfc/generic-arrays=EF=BF=BC I don=E2=80=99t think that it gives the full power we=E2=80=99re looking = for, and also not sure where the work at on these either.=20 Would love to get involved with generic classes.=20 How would you pose the syntax? Best, Richard Miles > On Jun 26, 2024, at 2:08=E2=80=AFPM, Bilge = wrote: >=20 > On 26/06/2024 20:59, Richard Miles wrote: >> I think we should have typed arrays in PHP. >=20 > Generics or bust. >=20 > Cheers, > Bilge --Apple-Mail=_166A8DAC-6E9B-434A-8446-D709B84A5416 Content-Type: multipart/related; type="text/html"; boundary="Apple-Mail=_CB6CFC22-221C-4531-81B8-EECF3C6A56BE" --Apple-Mail=_CB6CFC22-221C-4531-81B8-EECF3C6A56BE Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
I looked online, and I see two RFC=E2=80=99s = relating to generics. One talks about arrays = specifically.