Wouldn't this be nice?
Mark Mahieu
markmahieu at googlemail.com
Thu Nov 12 07:08:18 PST 2009
And back again:
char -> Character -> char
or perhaps an Iterable<@NonNull Character> would be more interesting:
char -> @NonNull Character -> char
Which begs the question - if one were to optimise this, would the
language spec or the VM be a better place to do so?
Mark
On 12 Nov 2009, at 14:39, Reinier Zwitserloot wrote:
> char to Character, obviously.
>
> --Reinier Zwitserloot
>
>
> On Thu, Nov 12, 2009 at 1:48 PM, Ulf Zibis <Ulf.Zibis at gmx.de> wrote:
>
>> Sorry for missing the mailing list by CC:
>>
>>
>> Am 11.11.2009 20:12, Joshua Bloch schrieb:
>>> Ulf,
>>>
>>> Presumably you mean interface CharSequence implements
>>> Iterable<Character>.
>> Yes right
>>> But I really want to avoid the boxing and unboxing.
>> Can you explain where we have boxing and unboxing here?
>>
>> Thanks,
>> Ulf
>>
>>>
>>> Regards,
>>>
>>> Josh
>>>
>>> On Wed, Nov 11, 2009 at 11:00 AM, Ulf Zibis <Ulf.Zibis at gmx.de
>>> <mailto:Ulf.Zibis at gmx.de>> wrote:
>>>
>>> Am 11.11.2009 17:46, Joshua Bloch schrieb:
>>>
>>> Paulo,
>>>
>>> I have a hard time intuiting the semantics by just looking a
>>> the statement.
>>> What I'm really sorry that I didn't put into the original
>>> statement is:
>>>
>>> for (char c : myString)
>>>
>>>
>>> Another Idea:
>>>
>>> interface CharSequence implements Iterable
>>>
>>> -Ulf
>>>
>>>
>>>
>>
>>
>>
>
More information about the coin-dev
mailing list