News for hackers. Stuff that matters.
Re:Proposing a Struct Syntax for Python by IshKebab on Wednesday June 14, 2023 @03:10PM (#36331006)
> there are still folks who don't want to lean into that

Honestly why would you cater to people who want to write worse code? Should Python have a mode with implicit type coercion too because some people can't be bothered to type `int()`?

> Class construction should be faster.

It's Python. You accepted your code would be extremely slow going in. Fiddling with the syntax isn't going to make it fast.

Re:Proposing a Struct Syntax for Python by Groxx on Wednesday June 14, 2023 @03:44PM (#36331505)
Yeah, honestly I think if startup time is a real concern, python is simply the wrong choice. Slow startup is largely inherent in its design.

Not that it's not worth spending some effort to optimize, of course. But the lower bound is quite high even if you're very careful.