ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-dev:46953] [ruby-trunk - RubySpec #7803][Open] RDoc documentation: `Array#&` clarification
@ 2013-02-08  6:39 sawa (Tsuyoshi Sawada)
  2013-02-17  5:18 ` [ruby-dev:47004] [ruby-trunk - RubySpec #7803] " ko1 (Koichi Sasada)
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: sawa (Tsuyoshi Sawada) @ 2013-02-08  6:39 UTC (permalink / raw
  To: ruby developers list


Issue #7803 has been reported by sawa (Tsuyoshi Sawada).

----------------------------------------
RubySpec #7803: RDoc documentation: `Array#&` clarification
https://bugs.ruby-lang.org/issues/7803

Author: sawa (Tsuyoshi Sawada)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 


In the RDoc documentation for `Array#&`, it does not mention whether the order of the elements in the returned array preserves the order in the receiver. There is a question raised regarding this point in stackoverflow:

    http://stackoverflow.com/questions/14764135/is-order-preserved-in-arrays-when-intersection-is-done

and it mentions that that is included in the test for RubySpec

    https://github.com/rubyspec/rubyspec/blob/master/core/array/intersection_spec.rb#L16

so it looks like that is taken for granted, but it is not guaranteed. If it is indeed a feature, then that should be written in the document. If not, (meaning the order might not be preserved in a future implementation), then that should also be mentioned in the document as a warning. The documentation for `Array#-` makes that point clear:

    Array Difference---Returns a new array that is a copy of the original array, removing any items that ...

so, perhaps the docmentation for `Array#&` should be written along the same line.


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-dev:47004] [ruby-trunk - RubySpec #7803] RDoc documentation: `Array#&` clarification
  2013-02-08  6:39 [ruby-dev:46953] [ruby-trunk - RubySpec #7803][Open] RDoc documentation: `Array#&` clarification sawa (Tsuyoshi Sawada)
@ 2013-02-17  5:18 ` ko1 (Koichi Sasada)
  2013-02-23  2:51 ` [ruby-dev:47071] [ruby-trunk - RubySpec #7803][Closed] " zzak (Zachary Scott)
  2013-02-23  2:51 ` [ruby-dev:47072] [ruby-trunk - RubySpec #7803] " zzak (Zachary Scott)
  2 siblings, 0 replies; 4+ messages in thread
From: ko1 (Koichi Sasada) @ 2013-02-17  5:18 UTC (permalink / raw
  To: ruby developers list


Issue #7803 has been updated by ko1 (Koichi Sasada).

Category set to DOC
Assignee set to zzak (Zachary Scott)
Target version set to next minor


----------------------------------------
RubySpec #7803: RDoc documentation: `Array#&` clarification
https://bugs.ruby-lang.org/issues/7803#change-36375

Author: sawa (Tsuyoshi Sawada)
Status: Open
Priority: Normal
Assignee: zzak (Zachary Scott)
Category: DOC
Target version: next minor


In the RDoc documentation for `Array#&`, it does not mention whether the order of the elements in the returned array preserves the order in the receiver. There is a question raised regarding this point in stackoverflow:

    http://stackoverflow.com/questions/14764135/is-order-preserved-in-arrays-when-intersection-is-done

and it mentions that that is included in the test for RubySpec

    https://github.com/rubyspec/rubyspec/blob/master/core/array/intersection_spec.rb#L16

so it looks like that is taken for granted, but it is not guaranteed. If it is indeed a feature, then that should be written in the document. If not, (meaning the order might not be preserved in a future implementation), then that should also be mentioned in the document as a warning. The documentation for `Array#-` makes that point clear:

    Array Difference---Returns a new array that is a copy of the original array, removing any items that ...

so, perhaps the docmentation for `Array#&` should be written along the same line.


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-dev:47071] [ruby-trunk - RubySpec #7803][Closed] RDoc documentation: `Array#&` clarification
  2013-02-08  6:39 [ruby-dev:46953] [ruby-trunk - RubySpec #7803][Open] RDoc documentation: `Array#&` clarification sawa (Tsuyoshi Sawada)
  2013-02-17  5:18 ` [ruby-dev:47004] [ruby-trunk - RubySpec #7803] " ko1 (Koichi Sasada)
@ 2013-02-23  2:51 ` zzak (Zachary Scott)
  2013-02-23  2:51 ` [ruby-dev:47072] [ruby-trunk - RubySpec #7803] " zzak (Zachary Scott)
  2 siblings, 0 replies; 4+ messages in thread
From: zzak (Zachary Scott) @ 2013-02-23  2:51 UTC (permalink / raw
  To: ruby developers list


Issue #7803 has been updated by zzak (Zachary Scott).

Status changed from Open to Closed

Resolved by r39415
----------------------------------------
RubySpec #7803: RDoc documentation: `Array#&` clarification
https://bugs.ruby-lang.org/issues/7803#change-36815

Author: sawa (Tsuyoshi Sawada)
Status: Closed
Priority: Normal
Assignee: zzak (Zachary Scott)
Category: DOC
Target version: next minor


In the RDoc documentation for `Array#&`, it does not mention whether the order of the elements in the returned array preserves the order in the receiver. There is a question raised regarding this point in stackoverflow:

    http://stackoverflow.com/questions/14764135/is-order-preserved-in-arrays-when-intersection-is-done

and it mentions that that is included in the test for RubySpec

    https://github.com/rubyspec/rubyspec/blob/master/core/array/intersection_spec.rb#L16

so it looks like that is taken for granted, but it is not guaranteed. If it is indeed a feature, then that should be written in the document. If not, (meaning the order might not be preserved in a future implementation), then that should also be mentioned in the document as a warning. The documentation for `Array#-` makes that point clear:

    Array Difference---Returns a new array that is a copy of the original array, removing any items that ...

so, perhaps the docmentation for `Array#&` should be written along the same line.


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-dev:47072] [ruby-trunk - RubySpec #7803] RDoc documentation: `Array#&` clarification
  2013-02-08  6:39 [ruby-dev:46953] [ruby-trunk - RubySpec #7803][Open] RDoc documentation: `Array#&` clarification sawa (Tsuyoshi Sawada)
  2013-02-17  5:18 ` [ruby-dev:47004] [ruby-trunk - RubySpec #7803] " ko1 (Koichi Sasada)
  2013-02-23  2:51 ` [ruby-dev:47071] [ruby-trunk - RubySpec #7803][Closed] " zzak (Zachary Scott)
@ 2013-02-23  2:51 ` zzak (Zachary Scott)
  2 siblings, 0 replies; 4+ messages in thread
From: zzak (Zachary Scott) @ 2013-02-23  2:51 UTC (permalink / raw
  To: ruby developers list


Issue #7803 has been updated by zzak (Zachary Scott).

% Done changed from 0 to 100


----------------------------------------
RubySpec #7803: RDoc documentation: `Array#&` clarification
https://bugs.ruby-lang.org/issues/7803#change-36816

Author: sawa (Tsuyoshi Sawada)
Status: Closed
Priority: Normal
Assignee: zzak (Zachary Scott)
Category: DOC
Target version: next minor


In the RDoc documentation for `Array#&`, it does not mention whether the order of the elements in the returned array preserves the order in the receiver. There is a question raised regarding this point in stackoverflow:

    http://stackoverflow.com/questions/14764135/is-order-preserved-in-arrays-when-intersection-is-done

and it mentions that that is included in the test for RubySpec

    https://github.com/rubyspec/rubyspec/blob/master/core/array/intersection_spec.rb#L16

so it looks like that is taken for granted, but it is not guaranteed. If it is indeed a feature, then that should be written in the document. If not, (meaning the order might not be preserved in a future implementation), then that should also be mentioned in the document as a warning. The documentation for `Array#-` makes that point clear:

    Array Difference---Returns a new array that is a copy of the original array, removing any items that ...

so, perhaps the docmentation for `Array#&` should be written along the same line.


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-02-23  3:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-08  6:39 [ruby-dev:46953] [ruby-trunk - RubySpec #7803][Open] RDoc documentation: `Array#&` clarification sawa (Tsuyoshi Sawada)
2013-02-17  5:18 ` [ruby-dev:47004] [ruby-trunk - RubySpec #7803] " ko1 (Koichi Sasada)
2013-02-23  2:51 ` [ruby-dev:47071] [ruby-trunk - RubySpec #7803][Closed] " zzak (Zachary Scott)
2013-02-23  2:51 ` [ruby-dev:47072] [ruby-trunk - RubySpec #7803] " zzak (Zachary Scott)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).