Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #118141] [BUG] 'first' should return Nil (not Failure) when reaching end of list in Rakudo

3 views
Skip to first unread message

Carl Mäsak

unread,
May 23, 2013, 12:00:57 PM5/23/13
to bugs-bi...@rt.perl.org
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #118141]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=118141 >


<TimToady> nr: say first * > 5, 1..3
<camelia> rakudo a50c2e: OUTPUT«No values matched␤ in method gist [...]
<camelia> ..niecza v24-51-g009f999: OUTPUT«Nil␤»
<TimToady> rakudobug :)
<masak> the spec doesn't say what to do in this situation.
<TimToady> yes it does :)
<masak> TimToady: where?
<masak> I went to S32/Containers and looked for 'first' there.
<masak> maybe I looked in the wrong place?
<TimToady> did you git pull?
* masak does so now

<https://github.com/perl6/specs/commit/381e96a2d7edcf745f160644297f4ee924a1a405>

* masak submits rakudobug

Will Coleda via RT

unread,
Jun 9, 2013, 11:41:04 AM6/9/13
to perl6-c...@perl.org
On Thu May 23 09:00:57 2013, masak wrote:
> <TimToady> nr: say first * > 5, 1..3
> <camelia> rakudo a50c2e: OUTPUT«No values matched␤ in method gist
> [...]
> <camelia> ..niecza v24-51-g009f999: OUTPUT«Nil␤»
> <TimToady> rakudobug :)
> <masak> the spec doesn't say what to do in this situation.
> <TimToady> yes it does :)
> <masak> TimToady: where?
> <masak> I went to S32/Containers and looked for 'first' there.
> <masak> maybe I looked in the wrong place?
> <TimToady> did you git pull?
> * masak does so now
>
> <https://github.com/perl6/specs/commit/381e96a2d7edcf745f160644297f4ee924a1a405>
>
> * masak submits rakudobug

Fixed.

Can be closed with tests.

--
Will "Coke" Coleda
0 new messages