Re: What do we need strict scalar type hints for?

From: Date: Wed, 04 Feb 2015 09:25:44 +0000
Subject: Re: What do we need strict scalar type hints for?
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-81793@lists.php.net to get a copy of this message
hi Sebastian, Do you like the proposal with declare() switch? Don't you afraid of sin(1) break? (it's just an example, telling how many things may be broken). Thanks. Dmitry. On Wed, Feb 4, 2015 at 10:30 AM, Sebastian Bergmann <sebastian@php.net> wrote: > Am 04.02.2015 um 08:25 schrieb Dmitry Stogov: > > The idea of that RFC was an ability to have zero-cost assert(). > > But an assert() is still in the body of a function or method and > not part of its signature. That is what I want scalar type > declarations for. > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.internals (#81793) next »