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

TCallableString is non-falsy (0 can't be a functionlike name) #6521

Merged
merged 1 commit into from Jan 14, 2022

Conversation

orklah
Copy link
Collaborator

@orklah orklah commented Sep 22, 2021

No description provided.

@orklah
Copy link
Collaborator Author

orklah commented Oct 4, 2021

This has the potential of being a BC break, though a very minor one...

@weirdan
Copy link
Collaborator

weirdan commented Oct 4, 2021

I'd postpone it to 5.0 then. I'm curious where one would encounter this?

@orklah
Copy link
Collaborator Author

orklah commented Oct 4, 2021

I thought about that when working in Union::isAlwaysTruthy/Union::isAlwaysFalsy. I was thinking about if i needed to include TCallableString to one or the other.

And now, thinking about it, I realize that I made a mistake. TNonEmptyString is not always Truthy (because of '0'), but TNonFalsyString is (not always Truthy).

@orklah orklah marked this pull request as draft October 12, 2021 17:25
@orklah orklah added the release:internal The PR will be included in 'Internal changes' section of the release notes label Nov 5, 2021
@orklah orklah marked this pull request as ready for review January 14, 2022 18:38
@orklah orklah merged commit 9ac77e9 into vimeo:master Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:internal The PR will be included in 'Internal changes' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants