PythonとDartで違うところは太文字にしました。
対象 | Python | Dart |
---|---|---|
クラス | UpperCamelCase | UpperCamelCase |
パッケージ | lowercase | lowercase_with_underscores |
モジュール | lowercase_with_underscores | lowercase_with_underscores |
変数 | lowercase_with_underscores | lowerCamelCase |
引数 | lowercase_with_underscores | lowerCamelCase |
関数 | lowercase_with_underscores | lowerCamelCase |
定数 | UPPERCASE_WITH_UNDERSCORES | lowerCamelCase |
参考
PEP 8 -- Style Guide for Python Code | Python.org
Effective Dart: Style | Dart