[Syntax-jsr] Re: [Java Spec Report] Re: JSR 201 autobox comments
"Pat LaVarre" <[email protected]> Sat, 10 Apr 2004 13:18:03 -0000
| Newsgroups | gmane.comp.java.spec-report |
|---|---|
| Message-ID | <[email protected]> |
> I hope the community appreciates what they get in return: Java 1.5 > sometime before 2010. Release early often wins, java 1.5 contemporaneous with .net c# helps, aye. > new interface types ... > would be impossible ... to have > .equals() methods that are consistent with both the behavior of the primitives > and the Object.equals() contract. Eh? What provision of the Object.equals() contract breaks if boxed values work like primitive values? > > the idea of using new interface types for boxed primitives (as proposed > > by Gilad Bracha) instead of the wretched legacy wrapper types (Integer, > > Double, Boolean, etc.). What are the signal virtues of writing a new interface type, rather than a new class type, to serve as the standard box? Wretchedness of the legacy I understand at least in part e.g. new Boolean(true) creating yet another != box whose value is true. > new interface types ... > would also have required deprecating the existing reflection > APIs and replacing them with another set that uses the new wrapper interfaces, Not sure I wholly appreciate this point. If the existing wrapper classes implemented the new interfaces, then the existing reflection API could accept the new wrapper interfaces in place of the existing wrapper classes and everybody ends happy ... no? > > NO observable differences between boxed and > > unboxed primitives in Java, a goal ... we could have achieved ... Eh? We could we erase this distinction? How?? Pat LaVarre ------------------------ Yahoo! Groups Sponsor ---------------------~--> Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511 http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/5cFolB/TM ---------------------------------------------------------------------~-> To unsubscribe from this mailing list, send an email to: [email protected] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/java-spec-report/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/