Re: [PHP-DEV] Gauging Interest:RFC to add map() function

2013-06-27 Thread Tjerk Anne Meesters
astian Krebs > > Cc: Florin Patan; Jeremy Curcio; PHP Internals > > Subject: Re: [PHP-DEV] Gauging Interest:RFC to add map() function > > > > On Thu, Jun 27, 2013 at 5:43 PM, Sebastian Krebs >wrote: > > > > > > > > > > > > > > 2

RE: [PHP-DEV] Gauging Interest:RFC to add map() function

2013-06-27 Thread Richard Bradley
> -Original Message- > From: tjerk.meest...@gmail.com [mailto:tjerk.meest...@gmail.com] On Behalf Of > Tjerk Anne Meesters > Sent: 27 June 2013 11:24 > To: Sebastian Krebs > Cc: Florin Patan; Jeremy Curcio; PHP Internals > Subject: Re: [PHP-DEV] Gauging Interest:RFC

Re: [PHP-DEV] Gauging Interest:RFC to add map() function

2013-06-27 Thread Tjerk Anne Meesters
On Thu, Jun 27, 2013 at 5:43 PM, Sebastian Krebs wrote: > > > > 2013/6/27 Tjerk Anne Meesters > >> On Thu, Jun 27, 2013 at 4:27 PM, Florin Patan >> wrote: >> >> > On Thu, Jun 27, 2013 at 10:17 AM, Tjerk Anne Meesters > > >> > wrote: >> > > On Wed, Jun 26, 2013 at 11:20 PM, Jeremy Curcio >> > wr

Re: [PHP-DEV] Gauging Interest:RFC to add map() function

2013-06-27 Thread Sebastian Krebs
2013/6/27 Tjerk Anne Meesters > On Thu, Jun 27, 2013 at 4:27 PM, Florin Patan > wrote: > > > On Thu, Jun 27, 2013 at 10:17 AM, Tjerk Anne Meesters > > wrote: > > > On Wed, Jun 26, 2013 at 11:20 PM, Jeremy Curcio > > wrote: > > > > > >> Hello, > > >> > > >> I would like to submit an RFC to add

Re: [PHP-DEV] Gauging Interest:RFC to add map() function

2013-06-27 Thread Tjerk Anne Meesters
On Thu, Jun 27, 2013 at 4:27 PM, Florin Patan wrote: > On Thu, Jun 27, 2013 at 10:17 AM, Tjerk Anne Meesters > wrote: > > On Wed, Jun 26, 2013 at 11:20 PM, Jeremy Curcio > wrote: > > > >> Hello, > >> > >> I would like to submit an RFC to add a new function to the PHP language. > >> The function

Re: [PHP-DEV] Gauging Interest:RFC to add map() function

2013-06-27 Thread Florin Patan
On Thu, Jun 27, 2013 at 10:17 AM, Tjerk Anne Meesters wrote: > On Wed, Jun 26, 2013 at 11:20 PM, Jeremy Curcio wrote: > >> Hello, >> >> I would like to submit an RFC to add a new function to the PHP language. >> The function would be called "map()". The purpose of this function would be >> to tak

Re: [PHP-DEV] Gauging Interest:RFC to add map() function

2013-06-27 Thread Tjerk Anne Meesters
On Wed, Jun 26, 2013 at 11:20 PM, Jeremy Curcio wrote: > Hello, > > I would like to submit an RFC to add a new function to the PHP language. > The function would be called "map()". The purpose of this function would be > to take an existing value within a range and make it to a corresponding > lo

RE: [PHP-DEV] Gauging Interest:RFC to add map() function

2013-06-26 Thread Richard Bradley
> From: Jeremy Curcio [mailto:j.cur...@icloud.com] > Sent: 26 June 2013 17:10 > To: Mike Willbanks > Cc: PHP Internals > Subject: Re: [PHP-DEV] Gauging Interest:RFC to add map() function > > > I am curious with something that is so easy; why would you want it in cor

Re: [PHP-DEV] Gauging Interest:RFC to add map() function

2013-06-26 Thread Jeremy Curcio
>The functionality provided is uncommon but perhaps usefu. However, I am>*very* against the name `map` which has a very established meaning in the>programming world; others have already mentioned this but I felt I should>mention it again.I'd like to note that I am not married to the name. If there

Re: [PHP-DEV] Gauging Interest:RFC to add map() function

2013-06-26 Thread Levi Morrison
On Wed, Jun 26, 2013 at 9:20 AM, Jeremy Curcio wrote: > Hello, > > I would like to submit an RFC to add a new function to the PHP language. > The function would be called "map()". The purpose of this function would be > to take an existing value within a range and make it to a corresponding > loc

Re: [PHP-DEV] Gauging Interest:RFC to add map() function

2013-06-26 Thread Johannes Schlüter
On Wed, 2013-06-26 at 16:09 +, Jeremy Curcio wrote: > > The above examples are just a few that stick out to me I'm sure that > looking through the list of available math functions would provide a > few more examples. Keeping these examples in mind, I don't follow the > logic of range mapping b

Re: [PHP-DEV] Gauging Interest:RFC to add map() function

2013-06-26 Thread Jeremy Curcio
>I am curious with something that is so easy; why would you want it in core?A lot of the Math Functions could be considered "so easy".abs() could be written out as:    function abs($n) {        if ($n >= 0) return $n;        else return $n*-1;    }pi() could be replaced by simply setting a global v

Re: [PHP-DEV] Gauging Interest:RFC to add map() function

2013-06-26 Thread Mike Willbanks
Hello Jeremy, On Wed, Jun 26, 2013 at 8:20 AM, Jeremy Curcio wrote: > Hello, > > I would like to submit an RFC to add a new function to the PHP language. > The function would be called "map()". The purpose of this function would be > to take an existing value within a range and make it to a cor

[PHP-DEV] Gauging Interest:RFC to add map() function

2013-06-26 Thread Jeremy Curcio
Hello,I would like to submit an RFC to add a new function to the PHP language. The function would be called "map()". The purpose of this function would be to take an existing value within a range and make it to a corresponding location within a new range.The map() method would have 5 required param