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

Support "raw" identifiers #524

Closed
wants to merge 3 commits into from
Closed

Conversation

niknetniko
Copy link
Member

Using __X__ as identifiers for those that need to be kept as is, e.g. not conventionalised is a mostly nice way of doing it.

One thing that still needs to consider is how to do constructors. Since we use the convention that a constructor needs to start with a capital, which no longer works.

One solution, e.g. new__X__, is ugly and difficult to implement. Another would be to add e.g. a new function, to allow writing constructor(__X__, *arguments).

This works cleanly, but is also not that nice.

Fixes #326.

Using __X__ as identifiers for those that need to be kept as is, e.g.
not conventionalized is a mostly nice way of doing it.

One thing that still needs to consider is how to do constructors.
Since we use the convention that a constructor needs to start with
a capital, which no longer works.

One solution, e.g. new__X__, is ugly and difficult to implement. Another
would be to add e.g. a new function, to allow writing

constructor(__X__, *arguments)

This works cleanly, but is also not that nice.
@niknetniko
Copy link
Member Author

Maybe another thing to consider here is the use-case now that we support language-specific code. For example, one use-case in the original issue is toJSON in JavaScript, but since this is fairly JavaScript-specific, would it not be enough to use the language-specific stuff?

@niknetniko
Copy link
Member Author

Not currently useful, see comment in #326.

@niknetniko niknetniko closed this Jun 7, 2024
@niknetniko niknetniko deleted the feature/automated-conversion branch June 13, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support options for automated conversion of casings
1 participant