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

refactor: eliminate ^{s,b,f} hungarian notation #36

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

vergenzt
Copy link
Contributor

Except for:

  • sOut, for backwards compatibility, since it's included in public API

Via VSCode find and replace of:

  • patt: \b[bs](?!File)([A-Z]\w+)(?<!sOut)\b
    with: \l$1
  • patt: \b[bs]File([A-Z]\w+)(?<!sOut)\b
    with: fileName$1
  • patt: sFile
    with: fname
  • patt: \bf([A-Z]\w+)\b
    with: file$1

Except for:
- `sOut`, for backwards compatibility, since it's included in public API

Via VSCode find and replace of:

- patt: `\b[bs](?!File)([A-Z]\w+)(?<!sOut)\b`
  with: `\l$1`
- patt: `\b[bs]File([A-Z]\w+)(?<!sOut)\b`
  with: `fileName$1`
- patt: `sFile`
  with: `fname`
- patt: `\bf([A-Z]\w+)\b`
  with: `file$1`
@nedbat
Copy link
Owner

nedbat commented Apr 30, 2024

It looks so not-1990's! Thanks.

@nedbat nedbat merged commit 5a6f8c1 into nedbat:main Apr 30, 2024
22 checks passed
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.

None yet

2 participants