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

`break until false` return false #3541

Closed
ksss opened this Issue Mar 24, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@ksss
Contributor

ksss commented Mar 24, 2017

p (break until false)
# CRuby => nil
# mruby => false
p (break until true)
# CRuby => nil
# mruby => nil
p (break while true)
# CRuby => nil
# mruby => true
p (break while false)
# CRuby => nil
# mruby => nil

ruby/spec: https://github.com/ruby/spec/blob/455f34e3f669e851fbbce80232822c62597b409a/language/until_spec.rb#L149

@matz matz closed this in 666787b Apr 3, 2017

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