Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67890 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63914 invoked from network); 26 Jun 2013 16:17:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jun 2013 16:17:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 config.schlueters.de Received: from [217.114.211.66] ([217.114.211.66:59197] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0B/47-29746-2041BC15 for ; Wed, 26 Jun 2013 12:17:07 -0400 Received: from [192.168.2.20] (ppp-88-217-78-161.dynamic.mnet-online.de [88.217.78.161]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id 598796536A; Wed, 26 Jun 2013 18:17:03 +0200 (CEST) To: Jeremy Curcio Cc: Mike Willbanks , PHP Internals In-Reply-To: <283c659f-031d-4574-9b6b-f2a345d1af1f@me.com> References: <283c659f-031d-4574-9b6b-f2a345d1af1f@me.com> Content-Type: text/plain; charset="UTF-8" Date: Wed, 26 Jun 2013 18:17:02 +0200 Message-ID: <1372263422.2410.24.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Gauging Interest:RFC to add map() function From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Wed, 2013-06-26 at 16:09 +0000, 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 being too easy to implement manually whenever > it is needed to not warrant being included in core. The mentioned functions are very very very common math functions. Your map() is relatively specialized. johannes