Re: switch using strings
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--232016332-1529804418-1299191439=:9551
Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8BIT
On Thu, 3 Mar 2011, Mike Schilling wrote:
"javax.swing.JSnarker" <gharriman@boojum.mit.edu> wrote in message
news:ikn9t6$69j$2@speranza.aioe.org...
On 02/03/2011 11:05 PM, Eric Sosman wrote:
On 3/2/2011 10:42 PM, javax.swing.JSnarker wrote:
I must wonder why whoever wrote that code didn't just use
AtomicInteger...
... for which there's no autoboxing. The prosecution rests.
1. The language designers *could* have at least provided auto*un*boxing
for that class.
2. The language designers *could* have provided ++ overloading and
other overloaded operators for that class, as they overloaded +
for String.
Not and kept it immutable. I???d probably have outlawed ++, +=, etc.
+1
Alternatively, i might do what Python does, and define a += b as shorthand
for a = a + b. Then ++a as a = a + 1.
tom
--
A hypothesis or theory is clear, decisive, and positive, but it is
believed by no one but the man who created it. Experimental findings,
on the other hand, are messy, inexact things, which are believed by
everyone except the man who did that work. -- Harlow Shapley
--232016332-1529804418-1299191439=:9551--