On Wed, Aug 2, 2017 at 12:00 PM, Woody Gilk <woody.g...@gmail.com> wrote:
>> This would require >= PHP 7
>
> That's a non-starter. There are plenty of people stuck on PHP 5.x for
> various reasons and I don't want to shut them out.
>
>> you loose some type hinting
>
> Also a non-starter for me, static typing is good and we should keep it.

Question for the list: what are folks' thoughts on shipping TWO
versions of interfaces in a single specification?

What I mean is: it would be tremendously useful to be able to define
PHP 7 STH and RTH within the interfaces; this essentially ensures that
any implementations that do not return the specified RTH will raise an
engine error.

Clearly, we cannot do this for interfaces that target PHP 5 still, but
considering that we specify the return types for the interfaces
already, it seems we _could_ provide two different implementations of
the interfaces, one targeting each version. These could be released as
separate minor versions of the associated library (e.g., 1.0 would
have the PHP 5 interfaces, 1.1 would have the PHP 7 interfaces).
Consumers and/or implementors would then choose which version they
support.

Thoughts?

-- 
Matthew Weier O'Phinney
mweierophin...@gmail.com
https://mwop.net/

-- 
You received this message because you are subscribed to the Google Groups "PHP 
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to php-fig+unsubscr...@googlegroups.com.
To post to this group, send email to php-fig@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/CAJp_myUB6XiMG09m%2B%3Dj2xAahCMF0mv0-ztf%2B-7U8Q1qwbFaAZA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to