Andrea Faulds wrote on 06/09/2015 17:20:
If we hadn't seen the class declaration at the top which makes
`KeyType` and `ValueType` be type parameters, we might not realise
they weren't ordinary classes or interfaces when we looked at
`__construct`. The -Type suffix you've used helps a little,
On 10.09.2015 03:50, Stephen Coakley wrote:
I like the "where" syntax as well. Most of PHP's "type operators" are
words instead of glyphs, so it makes sense to keep the tradition for
consistency. See the various syntaxes and keywords for using traits for
comparison.
I think adding a comma
On 09/07/2015 02:02 PM, George Bond wrote:
On 7 September 2015 at 11:37, Ben Scholzen wrote:
Hello,
Hi Ben!
Generics are a feature I'd love to see in PHP. I think this RFC could do
with a little elaboration, though.
Something that's particularly important to me is if it
Hello,
Hi Ben!
Generics are a feature I'd love to see in PHP. I think this RFC could do
with a little elaboration, though.
Something that's particularly important to me is if it be possible to
have default values for type parameters? For example, could I make a
class like this?
{
On 7 September 2015 at 11:37, Ben Scholzen wrote:
> Hello,
>
> Hi Ben!
>>
>> Generics are a feature I'd love to see in PHP. I think this RFC could do
>> with a little elaboration, though.
>>
>> Something that's particularly important to me is if it be possible to
>> have
Hi Ben!
Ben Scholzen 'DASPRiD' wrote:
Hello,
I've written up an RFC for supporting generic classes and methods in
PHP, and I'd love to hear your thoughts about it.
https://wiki.php.net/rfc/generics
Cheers,
Generics are a feature I'd love to see in PHP. I think this RFC could do
with a