News for hackers. Stuff that matters.
Re:Why Python is more fun that Java by waldrews on Saturday August 16, 2008 @10:35PM (#278135)
It's a little surprising how many of the Python-favoring features are already present in C# 3.0; closures, syntactically clean properties, and a nicer array syntax; between the yield keyword and LINQ, you get something close to generator syntax; reflection is pretty painless; and while there's no dynamic typing, there's a convenient type inference mechanism.

My personal pet peeve against Java is the lack of multiline string literals, also available in both Python and C#.

Java has some syntactic catching up to do.

Re:Why Python is more fun that Java by gojomo on Saturday August 16, 2008 @10:54PM (#278142)
I share your peeve. A request for multiline string literals is over 7 years old...

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4472509

Reading the Sun bug database, it's clear who's held back Java's functionality and stability over the years: xxxxx@xxxxx, who on this issue back in 2001 wrote "This is yet another request for a syntactic sugar to save some user from typing. It's not worth it."

I hope for the good of the platform xxxxx has been let go since then.

Re:Why Python is more fun that Java by michaelneale on Saturday August 16, 2008 @11:16PM (#278149)
Agreed. If I ever find xxxxx@xxxxx in a dark alley, he/she better watch out.
Re:Why Python is more fun that Java by michaelneale on Saturday August 16, 2008 @11:17PM (#278150)
Not just string literals - but a better literal syntax for maps and arrays would be really nice.
Re:Why Python is more fun that Java by michaelneale on Sunday August 17, 2008 @02:42AM (#278230)
Interesting article on how to kinda sorta do it using varags, generics and static imports (looks more like scala): http://gleichmann.wordpress.com/2008/01/13/building-your-own...
Re:Why Python is more fun that Java by 13ren on Sunday August 17, 2008 @03:36AM (#278254)
multiline string literals... also available in C (using \).