JavaScript vs. Python class fields handling
I step upon a weirdness exploring oriented object programming in JS.In Python, I often use the following constructions:https://pastebin.com/pmnxg0JiTranslating in js we got:https://pastebin.com/WpfDnVFXReading the doc, I understood that JS is initializing fields after the super is called. Hence, fields and methods behave differently with respect to inheritance.The "correct" way to translate the...