25.04.2017 01:56 "Sara Golemon" <poll...@php.net> napisał(a): > > On Mon, Apr 24, 2017 at 4:09 PM, Stanislav Malyshev <smalys...@gmail.com> wrote: > > it's clearly > > business logic. Which I have no problem with, but it shouldn't be part > > of type system then. > > > We're certainly arguing semantics at this point. Let's agree that > type enforcement is a good thing (which you seemed to say in your > first response) and move on to how that's implemented.
I agree with Stanislav. IMHO argument types are valueable when are reflective by reflection and curl_setopt has no valuable info by reflection and will never be. Curl implementation also uses resources cURL handle is used. Maybe it's time to refactor and provide objects with option setters with argument types? > > Why shouldn't we allow the same call-time decision making around > strict/weak enforcement to apply to "business logic" type enforcement > as it does to argument types? Surely consistency is a good thing as > well? > > -Sara > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >