Hacker News new | ask | show | jobs
by mumblemumble 678 days ago
I'm in both groups and I'm getting tired of how Python's syntax additions increasingly turn it into a mechanism for mid-level engineers to assert their dominance over colleagues by writing code that only people who have been deeply immersed in Python for years can understand.

Our Python users' Slack channel at work is already overcrowded with messages to the effect of, "halp what's this syntax how does this code work."

3 comments

This is a problem with our industry that people get paid $$$ to use a language but at no point are they compelled to read the manual for that language from cover to cover.
For real. How long does it realistically take to stay informed of the language's evolution? Literally a few hours every couple months, not much more.
Hi, I'm a PEP author. The hope was that users would say "I know f-string syntax so I know this syntax." Similar to JS and its template literals -> tagged template literal jump.
That would be an easy mental jump for skilled python users, but I think that it would be surprising for many less experienced users. Just giving it a function call syntax would be more in line with the principles established in PEP-20 IMO.
If I understand correctly, you'd prefer what other commenters have said for `html(i"Hello {name}")`?
Something like that, yeah.
A perfect use case for chatbots to answer them instead.