On Sun, 18 Oct 2026 22:25:06 +0200, John Bokma wrote:
> On 18/10/2026 22:01, rbowman wrote:
>> On Sun, 18 Oct 2026 12:11:06 +0200, John Bokma wrote:
>
> [snip]
>
>>> If that's the case use a dataclass with frozen=True (and perhaps
>>> kw_only=True).
>>
>> Yes, the language has been improving but iirc dataclass appeared in
>> 3.7.
>
> named tuples are another, older way.
>
> But 3.7, that's 2018!
That brings up an interesting question. How many people who have been
using Python for a decade or two keep up with the latest changes? What
they have been doing still works and they don't go out of their way to
read PEP 666 or whatever.
I'm certainly guilty. I pick and choose what I find useful f strings are
the greatest things since sliced bread. I suppose I might have to deal
with asyncio someday but I'll cross that bridge when I come to it. I
learned to hate await in C#.
It's not only Python. Whatever C spec that allowed inline variable
declarations was great. I'd gotten used to it in C++. I'm sure there were
other changes that I don't use. Some I actively dislike. afaik C still
doesn't have lambdas.
As far as Fortran, I'm stuck at f77. It still works.