Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124125 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 02FBC1A009C for ; Mon, 1 Jul 2024 02:28:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719800962; bh=YMrAHIKHdun7cz8iwr5LOgkwwuAFcudnNG7+VMTw+nE=; h=From:Subject:Date:Cc:To:From; b=IcwPMUt6oWzsTJka006RU43SkUhRummPWTxUjKP6tXZu5IJnXS3/5CGxqJUk21VfX N2aVzbLWlsDJ2YWjrMTosx6hvZhn+qEdyFDVerCnVQdzXJvIaXwSqtsmQ71X21h4jh UMzNPZkFcCIFBkd5QkAaSVCKwqbae0D0aMLsNFLcrvmREOg25yuQq1Hqu9CfOmp+w9 p9SXXQ8mW+5AZPPVr2VKjE9sB8ucMpoYZEMWa/IG/pDp72+kzAYRexEAMb/9yFPylZ m3XlzBPPRhqqNQQJEhLUiJR+6yCb6kaUm7zH1hK+85dM1Ve+xVOA7y1E3QRg0GeX0W iJJm8lNpYCreA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 56EE318005C for ; Mon, 1 Jul 2024 02:29:21 +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=1.7 required=5.0 tests=BAYES_50,DMARC_MISSING, HTML_MESSAGE,MIME_HTML_ONLY,MIME_HTML_ONLY_MULTI,MIME_QP_LONG_LINE, MPART_ALT_DIFF,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 mail1.25mail.st (mail1.25mail.st [206.123.115.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 1 Jul 2024 02:29:20 +0000 (UTC) Received: from smtpclient.apple (unknown [49.48.245.197]) by mail1.25mail.st (Postfix) with ESMTPSA id 4903A60416; Mon, 1 Jul 2024 02:27:51 +0000 (UTC) Content-Type: multipart/alternative; boundary=Apple-Mail-E5B65A4D-6A09-4ECB-9194-C0BAF071945E Content-Transfer-Encoding: 7bit Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net Mime-Version: 1.0 (1.0) Subject: Re: [PHP-DEV] [Initial Feedback] Typed Arrays Message-ID: <07A8534A-1B45-4F15-A78B-AA7DDF92B8B6@koalephant.com> Date: Mon, 1 Jul 2024 09:27:38 +0700 Cc: php internals , =?utf-8?Q?Micha=C5=82_Marcin_Brzuchalski?= , larry@garfieldtech.com To: Richard Miles X-Mailer: iPhone Mail (21F90) From: php-lists@koalephant.com (Stephen Reay) --Apple-Mail-E5B65A4D-6A09-4ECB-9194-C0BAF071945E Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
=EF=BB=BF

<= /div>

Sent from my iPhone
On 1 Jul 2024, at 0= 9:03, Richard Miles <richard@miles.systems> wrote:

It seems like everyone always gets really hung up on generics! That o= r how to syntactically implement this.


Hi

Given other improvements in the language, I= don't really see much need for the ability to specify fixed keys and their t= ypes (ie associative arrays) (I assume that's what the "['a' =3D> string]= " syntax is meant to be?)

Is there some fundamental= aspect of the original arrayof RFC that prevents it from being revived toda= y? The whole "does it include nulls" part is moot now presumably because we h= ave both ? And |null, and the Type[] syntax is very common in docblocks.

Cheers

Stephen  
= --Apple-Mail-E5B65A4D-6A09-4ECB-9194-C0BAF071945E--