commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <ggreg...@seagullsw.com>
Subject RE: [lang] Array concat?
Date Fri, 30 Jan 2004 01:44:47 GMT
Hello,

I've committed to HEAD three new ArrayUtils methods and unit tests: 

   add(Object[], Object)
   add(Object[], int, Object)
   join(Object[], Object[])

Please comment on method names or impl.

Thank you to Maarten for the patch the add methods are based on. 
Ticket is: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26056

Gary

> -----Original Message-----
> From: Janek Bogucki [mailto:yan@studylink.com]
> Sent: Thursday, January 29, 2004 14:27
> To: Jakarta Commons Developers List
> Subject: RE: [lang] Array concat?
> 
> On Thu, 2004-01-29 at 12:05, Gary Gregory wrote:
> > Ah, I do recall "join" now, much better.
> >
> > Thanks,
> > Gary
> 
> concat is the best choice because join implies the introduction of a
> delimiter between the two arrays which is not the outcome, while append
> implies the extension of an existing object somehow and arrays don't get
> extended. To me, concat does hint at the production of a new object.
> 
> -Janek
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message