Skip to content
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

Naming convention for macros #135

Closed
dtolnay opened this Issue Oct 29, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@dtolnay
Copy link
Member

dtolnay commented Oct 29, 2017

The C-CASE table needs a line for macros. I believe the convention is snake_case!.

@dtolnay

This comment has been minimized.

Copy link
Member Author

dtolnay commented Oct 29, 2017

Added in f59ec10.

@dtolnay dtolnay closed this Oct 29, 2017

@ExpHP

This comment has been minimized.

Copy link

ExpHP commented Nov 11, 2017

Should this recommendation be applied unilaterally, or is it more subtle? I've been using PascalCase! for macros that expand into types. (e.g. Array![i32; 5; 4; 3] which expands into [[[i32; 3]; 4]; 5])

@dtolnay

This comment has been minimized.

Copy link
Member Author

dtolnay commented Nov 11, 2017

Thanks! I did not consider type macros when I wrote this. I filed #145 to follow up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.