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.

Ask HN: Is Python losing its beauty?

10 pointsby scared2almost 5 years ago
Python is sensationally known for its simple and exquisite syntax. But recently it is being bloated, on each version you can see it stuffed with features just for sake of adding a feature.<p>this assignment operator &quot;:= &quot; which was recently added is a typical example.<p>Do you think it is necessary to bloat python with too many features?

7 comments

s1t5almost 5 years ago
The walrus operator is a very extreme example - the controversy around it directly disrupted the entire governance system of Python for a while. On the other hand not all new features detract from the simplicity of the language - f-strings are a wonderful example of this.
tony-allanalmost 5 years ago
You may not think it&#x27;s necessary but languages evolve and tend to add features. Unfortunately it&#x27; not practical to remove features from a mature language. This might look like bloat.<p>I happily use a subset of Python including a smattering of new features when they add value to the task at hand. This set of features has evolved over time and makes me more productive and allows me to write clean simple code.<p>If you don&#x27;t like a new feature just don&#x27;t use it. There is no rule that says you should use any feature which doesn&#x27;t help you write great code.
评论 #23499441 未加载
jjgreenalmost 5 years ago
Beauty is in the eye of the beholder, clearly. I think it&#x27;s foul, midnight is False, one minute past is True, a 1-tuple is written (2,) and you join strings with<p><pre><code> &#x27;&#x2F;&#x27;.join([&#x27;a&#x27;, &#x27;b&#x27;]) </code></pre> and don&#x27;t get me started on classes ...
评论 #23499038 未加载
morninglightalmost 5 years ago
This reminds me of a domestic quarrrel when we were searching for a dishwasher. She wanted a stainless steel automatic dishwasher with four speeds and selectble wash cycles. She also requested the fully integrated digital touch control panel with fuzzy logic modulated jets and multiple racks with fold down tines.<p>I felt it would be sacrilegious to waste money on these extras — just to clean the dinnerware. Why do you think God gave us tounges? She is now living with an applance salesman.
gnusty_gnurcalmost 5 years ago
I don&#x27;t think so.<p>There&#x27;s things that are weird, but you can just not use those.<p>I find static typing useful in certain scenarios, for example.<p>Having the flexibility to employ certain techniques when needed is very handy.
bjournealmost 5 years ago
No, I hate the new features. Python already has enough syntax to describe almost any coding pattern. If it was up to me I would instead remove as much extraneous syntax as possible. Axe the type declarations, function decorators, f-strings, matrix multiplication operator and so on.
colesantiagoalmost 5 years ago
yes. hate those print() brackets with a furious passion. That put me right off and steered clear of the language.
评论 #23499729 未加载