Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #3853

Re: The pain of autoboxin

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!news-out.readnews.com!transit3.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "Lew" <lew@THRWHITE.remove-dii-this>
Subject Re: The pain of autoboxin
Message-ID <VradnZ_bdZakSRLVnZ2dnUVZ_vqdnZ2d@comcast.com> (permalink)
X-Comment-To comp.lang.java.gui
Newsgroups comp.lang.java.gui
In-Reply-To <g6oeik$tlu$2@registered.motzarella.org>
References <g6oeik$tlu$2@registered.motzarella.org>
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 31
Date Wed, 27 Apr 2011 15:47:19 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303919239 96.60.20.240 (Wed, 27 Apr 2011 10:47:19 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:47:19 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:3853

Show key headers only | View raw


  To: comp.lang.java.gui
Daniele Futtorovic wrote:
> There's nothing right about autoboxing. And no, I don't want to talk
> about it.

There, there.  Actually, I sympathize.

There is no need for you to talk about it.  Sometimes things are just too 
painful to discuss.  Maybe someday when you can face your feelings more fully 
you can master autoboxing and gain what utility it does offer.

I just only expect autoboxing to be what it is.  If it doesn't behave the way 
I expect, I review the rules and correct my mistake.  In places where it's 
inconvenient, I don't use it, just like I don't use reflection in places where 
it's inconvenient or wrong.  Why waste time wishing for it to be what it is not?

For the most part, explicit conversion between primitives and their wrappers 
is better quality engineering and better code documentation than autoboxing 
provides.  Autoboxing was a sop to the whiners who thought overt primitive 
wrapping was "too much code", instead of being the statement of intent it 
should be.  It's an idiom for code writers, not code maintainers.

Programming is hard.

-- 
Lew

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | Next | Find similar | Unroll thread


Thread

Re: The pain of autoboxin "Lew" <lew@THRWHITE.remove-dii-this> - 2011-04-27 15:47 +0000

csiph-web