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

FileAPI "splice" method

From: Adam de Boor <adeboor@google.com>
Date: Wed, 5 Aug 2009 22:34:58 -0700
Message-ID: <6dd32ba0908052234i695e2e4ava56f3a200c188314@mail.gmail.com>
To: public-webapps@w3.org
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.

Adam de Boor
Received on Thursday, 6 August 2009 07:47:28 UTC

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