-
Notifications
You must be signed in to change notification settings - Fork 227
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
Distinguishing FooBar and fooBar when converting to snake case module name #545
Comments
What if we updated the capnproto-rust/capnpc/rust.capnp Lines 9 to 15 in ffcb213
Would that work for you? |
That might work but it does not seem a great solution for my use case, mainly because of two reasons:
|
I have a small patch for the
module_name
function in capnpc that inserts a leading_
in the module name when the camel case name begins by a lower case letter. This is intended to prevent name clashes between the module generated for something like astruct FooBar
and the module generated from something likeannotation fooBar
(these cases occur in the capnp codebase I am using). Would this patch be something that could be contributed upstream, perhaps as an option rather than as default behaviour? I'm willing to do all the heavy lifting to submit a PR that is mergeable. I'm mostly asking for direction about what would be the preferred approach.The text was updated successfully, but these errors were encountered: