
April 3, 2022
9:40 p.m.
On Mon, 4 Apr 2022 at 07:35, malmiteria <martin.milon@ensc.fr> wrote: > > Chris Angelo writes : > > You start out with the assumption that MOST PEOPLE think of super as a > > way to call THE, singular, parent. If this is indeed a problem, then > > it's not a problem with super, it's a problem with expectations. > This is not so much a problem as this is the context we're working under. > If we're defining / updating features of the langage, people understanding of the langage do matter. > A feature that would stick closer to the expectation of most people would provide a much smoother learning curve, for most people. > And just to make it clear, I am not under the impression super can only target one class. > What i'm saying here is that it is the most common impression the average developper would have. > > > > I got a little bit further into your post and found you fighting hard > > against the existing feature, and that's when I gave up on reading it. > ugh. > Let's make it simple then. Do you agree this list to be a comprehensive list of use case / feature of today's MRO + super: > 1) method resolution > 2) parent proxying > 3) dependency injection > 4) sideway specialisation (Mixins use case) > Not really a use case / feature, but related: > 5) the diamond problem > > If you have any doubts about what i mean by any of those, i describe them at the top of my lengthy post. The purpose of the MRO and super() is method resolution. That is all. Everything else is simply ways of using them. > > At the very least, test all your code blocks and > > fix the typos in those. > I do test my code blocks, but if you find errors, please let me know. > About typos, english is not my native langage, so i'm most likely blind to some of them, as much as i wanna apologise, it's not really in my control, again, let me know if some of them hurt your eyes. > I can ignore typos like "langage" in here, but the few code blocks I looked at in your wall of text were so full of errors that I would have had to spend quite a while correcting them before being able to run them. If you did test them, you must have then done further editing afterwards, NOT tested them again, and then posted. Don't test your code in French, translate to English, and post without testing. Test the *exact code you are about to post*. ChrisA