Skip to content

Improve naming of hasNonBindableDynamicName #42297

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

Merged
merged 1 commit into from
Jan 12, 2021

Conversation

sandersn
Copy link
Member

hasNonBindableDynamicName is not very usable:

  1. It has 'non' in the name, and is only ever used negated.
  2. It's true for a case that's not reflected in the name -- it's true for non-dynamic names as well.

I considered hasEarlyOrLateBindableName, since it calls hasLateBindableName.
But hasBindableName is a lot shorter.

hasNonBindableDynamicName

1. Has 'non' in the name, and is only ever used negated.
2. Is true for a case that's not reflected correctly in the name -- it's
true for non-dynamic names as well.

I considered hasEarlyOrLateBindableName, but decided to use
hasBindableName for now.
@sandersn sandersn merged commit 2f58637 into master Jan 12, 2021
@sandersn sandersn deleted the improve-readability-of-bindableName branch January 12, 2021 21:15
Zzzen pushed a commit to Zzzen/TypeScript that referenced this pull request Jan 16, 2021
hasNonBindableDynamicName

1. Has 'non' in the name, and is only ever used negated.
2. Is true for a case that's not reflected correctly in the name -- it's
true for non-dynamic names as well.

I considered hasEarlyOrLateBindableName, but decided to use
hasBindableName for now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants