TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Why Python is more fun that Java

25 pointsby marketeralmost 17 years ago

5 comments

globalrevalmost 17 years ago
I'd wish people stop post all crappy blogposts about shallow language-comparisons.<p>Saying language X does Y in 4 lines instead of language Zs 5 lines just doesn't say much unless you put it in a bigger perspective.<p>(And I like Python very much and hate Java).
评论 #278272 未加载
评论 #278144 未加载
waldrewsalmost 17 years ago
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.<p>My personal pet peeve against Java is the lack of multiline string literals, also available in both Python and C#.<p>Java has some syntactic catching up to do.
评论 #278142 未加载
评论 #278150 未加载
评论 #278254 未加载
babulalmost 17 years ago
Deja vu.<p>(<a href="http://news.ycombinator.com/item?id=260014" rel="nofollow">http://news.ycombinator.com/item?id=260014</a>)<p>p.s. I thought a dupe post got credited to its predecessor. Is there a time limit on this check?
评论 #278096 未加载
axodalmost 17 years ago
Sorry but I stopped reading here...<p>System.exit(0);<p>It's hardly going to be fair and balanced with things like that in it.
评论 #278229 未加载
评论 #278099 未加载
duanealmost 17 years ago
What, no decorators mentioned?