Fwd: Array Generics and null

Garrett Smith dhtmlkitchen at gmail.com
Mon Mar 24 11:56:42 PDT 2008


---------- Forwarded message ----------
From: Garrett Smith <dhtmlkitchen at gmail.com>
Date: Mon, Mar 24, 2008 at 11:27 AM
Subject: Re: Array Generics and null
To: Dean Edwards <dean at edwards.name>


On Mon, Mar 24, 2008 at 10:31 AM, Dean Edwards <dean at edwards.name> wrote:
 > Mike Shaver wrote:
 >  > On Sun, Mar 23, 2008 at 2:44 AM, Dean Edwards <dean at edwards.name> wrote:


>  It seems we have three choices for Array.forEach(null)
 >
 >  1) Do nothing
 >  2) Throw an exception
 >  3) Use the current object and iterate that
 >
 >  I prefer the first one, throwing an exception is acceptable too but the
 >  last one is counter-intuitive IMO.
 >

 (2) Throw an exception.

 When?  Checked or unchecked?




 >  -dean
 >
 >
 > _______________________________________________
 >  Es4-discuss mailing list
 >  Es4-discuss at mozilla.org
 >  https://mail.mozilla.org/listinfo/es4-discuss
 >



More information about the Es4-discuss mailing list