Re: [RFC] intdiv()
| From: | Andrea Faulds | Date: | Thu, 17 Jul 2014 06:58:36 +0000 |
| Subject: | Re: [RFC] intdiv() | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-75649@lists.php.net to get a copy of this message | ||
On 17 Jul 2014, at 07:56, Pierre Joye <pierre.php@gmail.com> wrote:
> The rare cases where I had to do that, I relied on bcmath or gmp. Yes,
> I needed some extra ops to actually achieve what this RFC proposes but
> it is good enough. The new ops overloading for extension simplifies
> that a lot as well.
>
> I am sorry but I'd to say -1 on this addition, not worse a new
> operator or function for this.
How on earth is adding a nearly-universal function everywhere else to PHP’s math library so
controversial, let alone as an operator?
Yes, you *can* do it with bcmath or gmp, but one should question why you *should*, given that it’s
a horrible workaround.
--
Andrea Faulds
http://ajf.me/