-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
nimsuggest: case insensitivity support #21228
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
Labels
Comments
Seems to be a good idea. |
Would like to contribute and see if I can draft a PR, is there anything I should do to get onboarded, or can I start straight away? |
Yeah, go for it! It's yours! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
Supporting different case types is something that is really bragged on about Nim, but in reality it is impossible to conveniently code using snake_case as nimsuggest/std lib is totally opiniated to camelCase.
How about not having to configure anything at all but just nimSuggest infering your coding style from your input ?
Seems simple enough, I'm pretty new to Nim though maybe there is something I'm overlooking.
I would be interested to contribute.
Description
This would fix the currently very unstable coding experience of people taking advantage of Nim's partial case insensitivity.
Alternatives
No response
Examples
I have a module A with a proc myProc
if I type
A.
nimsuggest will suggest meA.myProc
if I type
A.my_
nimsuggest will suggestA.my_proc
A more advanced flavor would be for nimsuggest to look backward and check wether I used snake_case for other identifiers and suggest straight away
A.my_proc
while still suggestingA.myProc
if I typeA.myP
Backwards Compatibility
No response
Links
#16772
The text was updated successfully, but these errors were encountered: