Re: [RFC] Typed array declarations

From: Date: Tue, 21 Jul 2026 21:04:11 +0000
Subject: Re: [RFC] Typed array declarations
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-132071@lists.php.net to get a copy of this message
> My largest concern is that this proposal substantially overlaps with the reified generics RFC, > which is being held until after the current code freeze in late August or early September at the > earliest. > > In particular, both proposals need to answer many of the same questions around parameterized > types, variance, Reflection, runtime enforcement, inference, and type identity. I think we should > avoid committing PHP to a separate set of array-specific rules before the broader generics proposal > has been discussed. Otherwise, we risk either constraining the generics design or ending up with two > parameterization models that behave differently. plus: we may need to use turbofish syntax like array::<int, Product> to avoid issues with the parser.

« previous php.internals (#132071) next »