4
Proposing a struct syntax for Python
(snarky.ca)
Welcome to the Python community on the programming.dev Lemmy instance!
Past
November 2023
October 2023
July 2023
August 2023
September 2023
Opinion: This doesn't really solve a problem like dataclasses v. namedtuples did. This mostly boils down to someone not really liking the dataclass syntax and deciding that adding yet another way to write classes is the way to go and is somehow more teachable (because now we need to teach both).
Maybe it'd be nicer in a few use cases, but I don't really feel it's worth the expansion to the syntax burden.