-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rethink current naming convention in contracts #386
Comments
The same applies for struct attributes, like |
Do we include test name standardization in this issue as well?
|
@0xNeshi not in this issue, for test name standardisation I suggest having another one. Easier to solve & merge. |
Makes sense, created a separate issue #491 |
In Solidity, internal functions use the
Here's my proposal: Let's consistently use the same pattern for all internal functions that are likely to have a public counterpart. This approach would:
What do you think about adopting this consistent pattern? It seems like a good balance between maintaining familiarity for Solidity developers while embracing Rust's conventions. |
We agreed to keep |
What is the feature you would like to see?
Right now we use in some cases Solidity like naming convention (
_do_sth()
). It is not recommended attitude in Rust and causescargo clippy
issues (right now disabled). We should rethink this topic and make sure our library is consistent in terms of naming.Related #491
Related #499
TODO: Remove
_
prefix from state variables (for functions see #386 (comment))Contribution Guidelines
The text was updated successfully, but these errors were encountered: