General

Profile

bmesuere (Bart Mesuere)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 0 0

Activity

06/10/2015

07:18 AM Ruby Bug #10534: Enumerator methods other than "next" do not always respect "peek"
I don't agree that a documentation would fix this. This issue results in unpredictable behaviour:
~~~
$ ruby -e "e=['a','b','c'].each;puts e.peek;puts e.next"
a
a
$ ruby -e "e=['a','b','c'].each;puts e.peek;e.each{|l| puts l}"
a
...
bmesuere (Bart Mesuere)

Also available in: Atom