Re: [VOTE][RFC] intdiv()

From: Date: Wed, 30 Jul 2014 17:54:40 +0000
Subject: Re: [VOTE][RFC] intdiv()
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-76279@lists.php.net to get a copy of this message
On 30 Jul 2014, at 18:51, Adam Harvey <aharvey@php.net> wrote: > -1 explanation: I don't think %% is clear enough % returns the 2nd part of the integer division, %% returns the 1st. Surely that makes sense? > I think the utility of > having it baked into the language as an operator is pretty minimal > regardless (I coded a lot of Python for scientific research in a > previous job, and I don't think I ever used //, and you'd think that's > the place where you'd use it). This actually isn’t something I’d expect to see in science. I think it’s more useful in other fields, like any time you wish to divide into rows (%%) and columns(%). -- Andrea Faulds http://ajf.me/

« previous php.internals (#76279) next »