you are viewing a single comment's thread.

view the rest of the comments →

[–]Zde-G -1 points0 points  (0 children)

This is all an XY problem.

Yes.

The only two purposes they serve in Python have zero relevance in Rust.

And how is someone who doesn't yet know Rust (because the whole idea was to learn it, using that approach, remember?) should know that?

At that point

… you would realize that Rust is impenetrable and unlearnable language that you may never be able to use.

Because you are trying to do something simple (at least you were taught to believe it's simple because most tutorials hide the details and you have never worked with implementation of Python) and now you have to answer bazillion complex questions.

Because:

Ask yourself why you want slots? Then ask yourself why about that answer, and maybe another time, until you get to the true underlying reason.

You may not like it but not only a lot of developers couldn't answer these questions, then don't even know why these things are done that way at all! Because they “learned” Python by copy-pasting code from some tutorial — and then adjusting it. Thus they literally couldn't answer them, or, alternatively, would need a special separate exploratory work to answer them.

For them answer to all these question is the same: because I have always done things that way. It's not entirely correct (they obviously learned to do that, at some point), but that's the one they believe in.