W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2009

Re: FileAPI "splice" method

From: Arun Ranganathan <arun@mozilla.com>
Date: Wed, 12 Aug 2009 07:45:24 -0700
Message-ID: <4A82D584.50308@mozilla.com>
To: Adam de Boor <adeboor@google.com>
CC: public-webapps@w3.org
Adam de Boor wrote:
> this is a minor point, but I'm finding the name of the "splice" method to be
> odd. To me splice means to join, and "slice" would seem a more appropriate
> name. The Array object has both splice and slice, and the former is used for
> removing and inserting data and modifies the array in place, while the
> latter pulls out a sub-part of the array into a new array.
> a
Agreed -- the  method is renamed.  "splice" was just a clumsy choice for 
a name on my part :-)

-- A*
Received on Wednesday, 12 August 2009 14:53:30 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:18 UTC