Re: Re: [RFC] Deprecations for PHP 7.1

From: Date: Wed, 24 Feb 2016 17:33:30 +0000
Subject: Re: Re: [RFC] Deprecations for PHP 7.1
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-91378@lists.php.net to get a copy of this message
On 2/24/2016 2:11 AM, Andrea Faulds wrote: > Furthermore, if PHP developers find floating-point confusing and are > genuinely surprised that 0.1 cannot be represented in binary exactly, > then perhaps they should go and learn about what floating-point numbers > do, rather than naïvely continuing on thinking they're decimals thanks > to PHP lying to them! It is not the job of the language to try and hide > that floats are imprecise from programmers. > +1 for removing the options and on the RFC. I have to deal with float comparisons and BIGINT being cast to (int) in PHP every day and people simply do not get it. The language should be brutal when it comes to these things and warn, throw exceptions, whatever. :P -- Richard "Fleshgrinder" Fussenegger

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.internals (#91378) next »