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

Add xxx:identifier metadata to remap identifiers #2864

Open
bernardnormier opened this issue Oct 7, 2024 · 0 comments
Open

Add xxx:identifier metadata to remap identifiers #2864

bernardnormier opened this issue Oct 7, 2024 · 0 comments
Assignees
Milestone

Comments

@bernardnormier
Copy link
Member

We want to add xxx:identifier metadata (cs:identifier, cpp:identifier, java:identifier) that allows users to remap C#/C++/Java etc. to the specified identifier.

For example:

interface Greeter 
{
    ["cs:identifier:Greet"] // changes the case in C#
    string greet(string name);
}

See also:
https://docs.icerpc.dev/slice2/language-guide/attributes#cs::identifier-attribute

Then once implemented, we want to remove various escaping in the slice compilers. If the generated code does not compile due to the Slice identifier choice of the user, the user should use xxx:identifier to pick the replacement identifier of their choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants