Skip to content

Rename Java variable names that conflict with ObjC reserved words #1549

Closed
@taylesworth

Description

We're translating an existing Java project that unfortunately has many uses of typeof as a Java variable name. It's easy enough for us to rename these but not as easy to prevent regressions in new code, since the pattern has been so widely used before.

Would it be reasonable to add a check for reserved words here and append an "_" if a variable name is found in an array of reserved words?

Want to check before going down this path to see if it's something you have considered in the past and whether there are any gotchas I should be aware of.

Activity

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

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions