From: alxtskrnk@... Date: 2015-02-25T16:20:42+00:00 Subject: [ruby-core:68307] [Ruby trunk - Bug #10837] spatting a single element array produces an array instead of a single value for return and next Issue #10837 has been updated by bug hit. Nobuyoshi Nakada wrote: > It's similar to `return *[1, 2]`. Please clarify your position, is this about preserving compatibility, or do you really disagree that conceptually an rvalue splat should eliminate the array? ---------------------------------------- Bug #10837: spatting a single element array produces an array instead of a single value for return and next https://bugs.ruby-lang.org/issues/10837#change-51662 * Author: bug hit * Status: Rejected * Priority: Normal * Assignee: * ruby -v: ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- irb(main):013:0> ->{return *[1]}.() => [1] irb(main):014:0> ->{next *[1]}.() => [1] ______________ *[x] should mean x as it already does for arguments -- https://bugs.ruby-lang.org/