[racket-dev] [plt] Push #22081: master branch updated

From: Stephen Chang (stchang at ccs.neu.edu)
Date: Thu Jan 27 16:45:33 EST 2011

I meant in lazy-take, which is what was changed in this push (args are
flipped). If it behaves that way in Racket, then I guess lazy should
be consistent.



On Thu, Jan 27, 2011 at 4:42 PM, Robby Findler
<robby at eecs.northwestern.edu> wrote:
> Do you mean (take "nonlist" 0)? That's '() in regular Racket, I think
> to accommodate improper lists.
>
> C:\Users\Administrator\git\exp\plt>Racket.exe
> Welcome to Racket v5.0.99.7.
>> (take "nonlist" 0)
> '()
>
> Robby
>
> On Thu, Jan 27, 2011 at 3:32 PM, Stephen Chang <stchang at ccs.neu.edu> wrote:
>> What should be the result of (take 0 "nonlist")
>>
>> In the spirit of this bug report, I think it should be an error
>> http://bugs.racket-lang.org/query/?cmd=view&pr=11458
>>
>> But right now it evaluates to the empty list.
>>
>>
>>
>>
>> On Wed, Jan 26, 2011 at 6:43 PM, Stephen Chang <stchang at ccs.neu.edu> wrote:
>>> Oh sorry, didnt read carefully. I now see that it wasnt my push you
>>> were replying to.
>>>
>>>
>>>
>>> On Wed, Jan 26, 2011 at 6:42 PM, Stephen Chang <stchang at ccs.neu.edu> wrote:
>>>> That wasnt the bug that I was fixing.
>>>>
>>>>
>>>>
>>>> On Wed, Jan 26, 2011 at 5:58 PM, Matthew Flatt <mflatt at cs.utah.edu> wrote:
>>>>> At Wed, 26 Jan 2011 17:07:32 -0500, eli at racket-lang.org wrote:
>>>>>> +    (let ([n0 (! n)])
>>>>>> +      (unless (exact-nonnegative-integer? n)
>>>>>> +        (raise-type-error 'take "non-negative exact integer" 0 n l))
>>>>>
>>>>> Still committing changes with no tests.
>>>>>
>>>>> Still broken:
>>>>>
>>>>>  > (list-ref (take (car (list 1)) (list 2)) 0)
>>>>>  take: expects type <non-negative exact integer> as 1st argument, given:
>>>>>  #<promise!1>; other arguments were: '(2)
>>>>>
>>>>> _________________________________________________
>>>>>  For list-related administrative tasks:
>>>>>  http://lists.racket-lang.org/listinfo/dev
>>>>>
>>>>
>>>
>> _________________________________________________
>>  For list-related administrative tasks:
>>  http://lists.racket-lang.org/listinfo/dev
>>
>


Posted on the dev mailing list.