On Tue, Nov 1, 2016 at 6:51 PM, Robby Findler
wrote:
> On Tue, Nov 1, 2016 at 2:06 PM, David Storrs
> wrote:
> >> It is a syntax error.
> >
> >
> > Absolutely, but that's not what the message says. :>
>
> Yes, syntax errors in "#lang racket" and its variants don't come with
> the word "syntax"
On Tue, Nov 1, 2016 at 2:06 PM, David Storrs wrote:
>> It is a syntax error.
>
>
> Absolutely, but that's not what the message says. :>
Yes, syntax errors in "#lang racket" and its variants don't come with
the word "syntax" in them, but you can tell because they happen before
you run code (i.e.,
On Tue, Nov 1, 2016 at 2:52 PM, Robby Findler
wrote:
>
>
> On Tuesday, November 1, 2016, David Storrs wrote:
>
>>
>>
>> On Tue, Nov 1, 2016 at 12:58 PM, Robby Findler <
>> ro...@eecs.northwestern.edu> wrote:
>>
>>> I wish I could see how to make a better error message for this input,
>>> but I'm
On Tuesday, November 1, 2016, David Storrs wrote:
>
>
> On Tue, Nov 1, 2016 at 12:58 PM, Robby Findler <
> ro...@eecs.northwestern.edu
> > wrote:
>
>> I wish I could see how to make a better error message for this input,
>> but I'm not seeing it. Do you?
>>
>> Robby
>>
>>
> With this function:
>
On Tue, Nov 1, 2016 at 12:58 PM, Robby Findler
wrote:
> I wish I could see how to make a better error message for this input,
> but I'm not seeing it. Do you?
>
> Robby
>
>
With this function:
(define/contract (register-functions . func-list)
(->* () #:rest (listof procedure?) () any)
I go
I wish I could see how to make a better error message for this input,
but I'm not seeing it. Do you?
Robby
On Tue, Nov 1, 2016 at 11:50 AM, David Storrs wrote:
> Aha. It's always the simple things that get you. Thanks, Alexis.
>
> On Tue, Nov 1, 2016 at 12:30 PM, Alexis King wrote:
>>
>> You
Aha. It's always the simple things that get you. Thanks, Alexis.
On Tue, Nov 1, 2016 at 12:30 PM, Alexis King wrote:
> You have the order wrong for ->*. The #:rest option should come
> after the positional argument contracts, just before the return
> contract. Since this function has no positi
You have the order wrong for ->*. The #:rest option should come
after the positional argument contracts, just before the return
contract. Since this function has no positional optional arguments,
you can either omit the optional positional argument contracts
entirely:
(->* () #:rest (listof pr
What would the correct contract for this function be?
(define/contract (register-functions . func-list)
(->* () #:rest (listof procedure?) () any) ;; this is wrong
(for ((f func-list)) ...do something...))
I've read through the docs below and it doesn't make clear how to do it.
https://
9 matches
Mail list logo