News for hackers. Stuff that matters.
Re:Python overtakes JavaScript as most questioned language o... by skdotdan on Saturday April 20, 2019 @08:35AM (#19706207)
I mostly agree with you, but still think that Python could be way simpler and equally powerful. I'd love to see a language similar to Python, but with named structs instead of classes, for instance.
Re:Python overtakes JavaScript as most questioned language o... by whynotminot on Saturday April 20, 2019 @08:48AM (#19706251)
Ooooh that's an interesting idea.

That is one thing about Python that has always been interesting. For new programmers, it's such an attractive language because it's very simple to get up to speed and pump out usable code.

But to really start leveraging Python for more serious projects it's extremely useful to use Classes. And that's actually an appreciable bump in difficulty for inexperienced devs. I've seen go to great lengths to avoid it.

Maybe named structs would be a simpler way for them to level up complexity, especially if they're coming from a C background.

Re:Python overtakes JavaScript as most questioned language o... by typon on Saturday April 20, 2019 @10:08AM (#19706578)
@dataclasses?
Re:Python overtakes JavaScript as most questioned language o... by sametmax on Saturday April 20, 2019 @12:47PM (#19707503)
People have not caught up with 3.5+ yet. I see plenty of code not using f-strings, chainmaps, pools and the likes.

We can't expect them to known about dataclasses yet.