-
Notifications
You must be signed in to change notification settings - Fork 219
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
Following Rust naming scheme #780
Comments
@0xYYY fyi, opened this issue following our discussion |
noted, thanks a lot, will also update with the cases that i found |
There are a few places where a method may return either a type // This is according to rust naming scheme
fn foo() -> Foo;
// This is also in accordance to the document
fn get_foo() -> Option<Foo>;
fn try_foo() -> Result<Foo, Error>; Note the document uses: CC @jfecher |
Can i take this task ? |
That would be amazing - note:
|
aa i see maybe i could take on other issue along the way coz its a long term kinda thing |
That would be great! |
Problem
This is a tracking issue. There are places where we do not follow the Rust naming guidelines.
See: https://rust-lang.github.io/api-guidelines/naming.html
This file does not list all of the naming rules, so we can add a comment in here to specify ones which are used in the ecosystem but not widely documented. Eg.
get_or_init
,get_or_compute_foo
Solution
Alternatives considered
Additional context
The text was updated successfully, but these errors were encountered: