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

Make Enumerable's predicate blocks return bool instead of untyped #438

Merged
merged 1 commit into from
Oct 19, 2020

Conversation

mame
Copy link
Member

@mame mame commented Oct 19, 2020

For example, the return value of the block of Enumerable#all? is handled
as bool. In this case, it will bring no difference, but I think it is a
good habit to use a more explicit name instead of "untyped".

Note, if the definition of bool is changed according to #133, they
should be changed again.

For example, the return value of the block of Enumerable#all? is handled
as bool. In this case, it will bring no difference, but I think it is a
good habit to use a more explicit name instead of "untyped".

Note, if the definition of `bool` is changed according to ruby#133, they
should be changed again.
@marcandre
Copy link
Member

Agreed 👍
I was waiting for #133 too to make a PR, but this could be merged beforehand anyways.

@soutaro soutaro merged commit 16772a0 into ruby:master Oct 19, 2020
@soutaro
Copy link
Member

soutaro commented Oct 19, 2020

Thanks! @mame

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants