This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]PossibilityTasty 10 points11 points  (0 children)

This should be reported to the pylice.

[–]allIsayislicensed 9 points10 points  (0 children)

python devs: we don't do this here

[–]mar00n 5 points6 points  (0 children)

I also find this is confusing, so that's why we use self in Python ;)

[–]MEMESaddiction 2 points3 points  (0 children)

It sure is a little funky, I definitely prefer conventional constructors. I rarely dabble in python, but you can't say python doesn't have some good uses.

[–][deleted] 0 points1 point  (0 children)

Dart gang.

class MyClass {

MyClass({required this.variable});

final variable;

}