Re: [Initial Feedback] Typed Arrays

From: Date: Mon, 01 Jul 2024 02:27:38 +0000
Subject: Re: [Initial Feedback] Typed Arrays
Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Sent from my iPhoneOn 1 Jul 2024, at 09:03, Richard Miles <[email protected]>
wrote:There even was an RFC in voting which Joe implemented and it addresses nearly what is
discussed it this thread https://wiki.php.net/rfc/arrayof
The link above has broken page links to the mailing list. I’ve found the externals.io history and
have given it a read:

<apple-touch-icon.png>Typed array properties
V2externals.io<apple-touch-icon.png>Introducing "Array Of" RFCexternals.io

It seems like everyone always gets really hung up on generics! That or 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 types (ie associative arrays) (I assume that's what the
"['a' => string]" syntax is meant to be?)

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

Cheers

Stephen  


Thread (39 messages)

« previous php.internals (#124125) next »