IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Re: Java - a baby step towards Smalltalk -a giant leap
What is autoboxing?
-drl
New Read the link
An automatic conversion from primitive types to their corresponding reference type wrappers. This conversion facilitates the integration of generics into the language, and reduces inessential clutter.

Many fears are born of stupidity and ignorance -
Which you should be feeding with rumour and generalisation.
BOfH, 2002 "Episode" 10
New Java gravitating towards C#?
All the features cited are merely copying nicety features from C#. Autoboxing is the automatic encapsulation (de-encapsulation) of primitive types into object types (vice-versa) when required. It's always been a pain in Java to have collections of primitives, since the primitives have to be boxed in terms of their related Class Type:

Integer i = new Integer(123);
int j = i.intValue();

Boxing tries to obviate the need for explicit casting, so that you can write:

Integer i = 123;
int j = i;
New Re: Java gravitating towards C#?
That's a horrible idea - the return of the implicit cast in a way.
-drl
     Java - a baby step towards Smalltalk -a giant leap towards C - (tuberculosis) - (25)
         Re: Java - a baby step towards Smalltalk -a giant leap - (deSitter) - (3)
             Read the link - (tseliot)
             Java gravitating towards C#? - (ChrisR) - (1)
                 Re: Java gravitating towards C#? - (deSitter)
         They won't admit they were wrong - (bluke) - (19)
             I had a "discussion" with a C++ programmer - (admin) - (11)
                 Re: I had a "discussion" with a C++ programmer - (tuberculosis) - (10)
                     Re: I had a "discussion" with a C++ programmer - (neelk) - (9)
                         Roll your own... - (ChrisR) - (8)
                             Interesting summary - (ben_tilly)
                             Needle... - (neelk) - (6)
                                 What is the underlying motivation? - (tuberculosis) - (5)
                                     Re: What is the underlying motivation? - (neelk) - (4)
                                         Suggestion... - (ben_tilly)
                                         Have fun - (tuberculosis) - (2)
                                             Re: Have fun - (neelk) - (1)
                                                 Sounds cool - compare it to Strongtalk? - (tuberculosis)
             I'd like to see it. - (tuberculosis) - (4)
                 Some shortcomings of primitives - (bluke) - (3)
                     Yep, seen all those. - (tuberculosis) - (2)
                         Unfortunately people like Gosling ... - (bluke)
                         Heh. There's a reason for that. - (tseliot)
             Java 1 wasn't *that* bad - (wharris2) - (1)
                 Wasn't bad??? - (bluke)
         The Java-Language-Design Research Algorithm, Unleashed - (bluke)

As seen on TV!
135 ms