Re: [racket-users] Interaction of Typed Racket with define/match?

2017-11-17 Thread Ben Greenman
> Others: Does define/match do anything that would make Typed Racket see it > differently from define + match*? It seems like define/match expands to > define + match*/derived anyway. The only thing that's different is which > define it's expanding to. So is expanding to Racket's define instead of

Re: [racket-users] Interaction of Typed Racket with define/match?

2017-11-13 Thread Alex Knauth
> On Nov 13, 2017, at 3:25 PM, Stuart Hungerford > wrote: > > Hi, > > I'm trying to create a Typed Racket function that compares to 2-vectors of > integers with an optional error term that defaults to 1: > > #lang typed/racket > > > (define-type Reading (Vector Integer Integer)) > > > (:

[racket-users] Interaction of Typed Racket with define/match?

2017-11-13 Thread Stuart Hungerford
Hi, I'm trying to create a Typed Racket function that compares to 2-vectors of integers with an optional error term that defaults to 1: #lang typed/racket (define-type Reading (Vector Integer Integer)) (: close? (->* (Reading Reading) (Integer) Boolean)) (define/match (close? r1 r2 [err 1])