May 5: Too much coffee
hm, I writing too many blog articles about Java maybe that's related to me not consuming caffeine anymore since two weeks or so no Coke, no coffee. Anyways I wanted just to talk about something else 

Posted by Johannes Schlüter
in General Comments: (2)
Trackbacks: (0)
Defined tags for this entry: boredom
May 3: Java and Arrays

One more thing out of the category "Java annoys me": In Java you can declare an array like that:
String[] array_of_strings = { "foo", "bar", "baz" };
but you can't do that inside a func call
someMethod({ "foo", "bar", "baz" });
not even when using an explicit cast
someMethod((String[]){ "foo", "bar", "baz" });
A smart compiler should be able to create the same code for both, I agree this can be unreadable, but that should be my choice not the language's choice.</flame>
« previous page
(Page 1 of 1, totaling 2 entries)
next page »