[Feature Request] Add compiler warnings (or errors) for usage of inappropriate case #1019
Open
1 task done
Labels
enhancement
New feature or request
mojo
Issues that are related to mojo
mojo-lang
Tag for all issues related to language.
mojo-repo
Tag all issues with this label
Review Mojo's priorities
What is your request?
I would suggest to add warnings (or errors possible to turn off via flag) to the compiler related to usage of inappropriate case in source code (camelCase instead of snake_case and so on)
What is your motivation for this change?
This feature will greatly help to keep entire Mojo codebase consistent and avoid mess as is still in Python (despite PEP8) and which is not fixable because of huge compatibility reasons:
Of course, if compiler will suffer from this additional job, this may be moved to formatting tool, but keeping that in the compiler would have few advantages:
Rust already has that feature in its compiler, so it is doable :)
Any other details?
As for now this is a noticeable problem. People who start to develop projects in Mojo are not aware that snake_case is only one supported convention. The sooner it will be introduced, the better.
The text was updated successfully, but these errors were encountered: