-
Notifications
You must be signed in to change notification settings - Fork 56
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
Spaces around =
in attributes
#82
Comments
I agree we do need to decide this. I tend to write it without spaces myself, however, given that everywhere else |
I also think there should be spaces. I used to write it without spaces (because I read it that way in example code) but now I always write the spaces for consistency. |
I like it without spaces. Python does it with function default arguments, and I'm really glad they do, otherwise function declarations would be really long. Likewise, if we opt for no spaces around |
Should we put spaces around the equal sign (
=
) in attributes? For example, should we write#![recursion_limit="1024"]
or
#![recursion_limit = "1024"]
?
Notes:
let x=1;
, it corrects that tolet x = 1;
.If so, then maybe we should add this to the Attributes section of the guide (including an example) to prevent confusion and add a formatting rule to
rustfmt
.The text was updated successfully, but these errors were encountered: