Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 84213 invoked from network); 30 Nov 2003 19:24:40 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 30 Nov 2003 19:24:40 -0000 Received: (qmail 89009 invoked by uid 500); 30 Nov 2003 19:24:29 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 88766 invoked by uid 500); 30 Nov 2003 19:24:27 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 88753 invoked from network); 30 Nov 2003 19:24:27 -0000 Received: from unknown (HELO hotmail.com) (64.4.47.44) by daedalus.apache.org with SMTP; 30 Nov 2003 19:24:27 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 30 Nov 2003 11:24:32 -0800 Received: from 212.217.21.95 by by9fd.bay9.hotmail.msn.com with HTTP; Sun, 30 Nov 2003 19:24:31 GMT X-Originating-IP: [212.217.21.95] X-Originating-Email: [equinus100@hotmail.com] From: "Ash .." To: commons-dev@jakarta.apache.org Bcc: Subject: Re: [lang] StringUtils.subarray v/s subArray Date: Sun, 30 Nov 2003 19:24:31 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 30 Nov 2003 19:24:32.0520 (UTC) FILETIME=[94FE7080:01C3B777] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I see two factors here, one, instances in the the standard Java API, two, mapping of natural language to Java convention. In the first case, we can say there is some incoherence, since you find both "substring" and "subList". Thus, the second one, is perhaps a better guide to making a decision here. Thus, I would say, one might go with how the names translate into Java convention (= subarray.) It would be good to have others' comments on this too. Ashwin ----- Original Message ----- I changed this based on subList() in the collections API. substring() is an alternative precedent, so I am open to opinions. Stephen ----- Original Message ----- From: "Ash .." >Thanks for integrating the subarray implementation patch. > >However, I am curious to know why Stephen chose to name the method >"subArray", in place of >"subarray". >In the English language, the prefix "sub" in this sense is joined to the >word with the resultant word being a single "token": subunit, subclass, >suburbs, subway... substring, subarray, >whereby, as per standard Java conventions, the name ought to be "subarray" >rather than "subArray". >Even names in Standard API reflect this: substring, etc. > >thanks, >Ashwin _________________________________________________________________ Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org