Project

General

Profile

Feature #3685

Struct does not define #to_ary, needed for implicit-splat.

Added by Hal Brodigan almost 6 years ago. Updated over 3 years ago.

Status:
Rejected
Priority:
Normal
[ruby-core:31686]

Description

=begin
Now that #to_ary is used for implicit-splat, I believe it would be useful to support implicit-splat for Structs, since they share some behavior with Arrays.
=end

History

#1 Updated by Shyouhei Urabe over 5 years ago

  • Status changed from Open to Assigned
  • Assignee set to Yui NARUSE

=begin

=end

#2 Updated by Yui NARUSE over 5 years ago

  • Assignee changed from Yui NARUSE to Yukihiro Matsumoto

=begin

=end

#3 [ruby-core:49143] Updated by Yusuke Endoh over 3 years ago

  • Description updated (diff)
  • Target version set to next minor

#4 [ruby-core:49162] Updated by Yukihiro Matsumoto over 3 years ago

  • Status changed from Assigned to Rejected

Struct objects are not arrays. to_ary should be defined for objectw that conform every Array methods.

Matz.

Also available in: Atom PDF