Re: [racket-users] bad response from server

2020-03-03 Thread Hendrik Boom
On Mon, Mar 02, 2020 at 12:54:41PM -0700, Matthew Flatt wrote: > A snapshot catalog only lasts for a limited time, and v7.4.0.1 was a > very long time ago in snapshot terms. I see. That's what I suspected. > > So, the short answer is to upgrade to a new snapshot --- or switch to a > release, whi

[racket-users] London Racket meet-up 9 April 1-2pm

2020-03-03 Thread Stephen De Gabrielle
London Racket Meet-up Thursday 9th April 1-2pm Meet at 1pm at ‘The Last Word’ (cafe)[1] and after introductions we will move to The Alan Turing Institute[2]. [1] The Last Word (cafe in front of British Library) 96 Euston Rd, London NW1 2DB Google maps: https://goo.gl/maps/SbUeExYddSnWPQbz6 [2]

Re: [racket-users] [racket users] Generics question

2020-03-03 Thread Kevin Forchione
> On Mar 3, 2020, at 10:48 AM, Jon Zeppieri wrote: > > On Tue, Mar 3, 2020 at 12:37 PM Kevin Forchione wrote: >> >> Thanks! That brings me a little closer in appreciating the comments I’ve >> read about replacing object-oriented code with structs and methods. >> >> Is this part of the rac

Re: [racket-users] [racket users] Generics question

2020-03-03 Thread Jon Zeppieri
On Tue, Mar 3, 2020 at 12:37 PM Kevin Forchione wrote: > > Thanks! That brings me a little closer in appreciating the comments I’ve > read about replacing object-oriented code with structs and methods. > > Is this part of the racket/generic or the Multimethods library? The example > you provide

Re: [racket-users] [racket users] Generics question

2020-03-03 Thread Kevin Forchione
> On Mar 3, 2020, at 9:19 AM, Jon Zeppieri wrote: > > (struct A (this other) #:transparent > #:methods gen:foo > [(define/generic generic-foo do-foo) > (define (do-foo foo) > (printf "other=~a ~a" > (A-this foo) > (generic-foo (A-other foo]) Thanks! That b

Re: [racket-users] [racket users] Generics question

2020-03-03 Thread Jon Zeppieri
Kevin, This is what `define/generic` is for. In your example: On Tue, Mar 3, 2020 at 11:08 AM Kevin Forchione wrote: > > (struct A (this other) #:transparent > #:methods gen:foo > [(define (do-foo foo) > (printf "other=~a ~a" > (A-this foo) > (do-foo (A-other f

[racket-users] [racket users] Generics question

2020-03-03 Thread Kevin Forchione
Hi guys, If I create a generic, say foo, for a particular struct and then later reference that method on a different type of struct from within the handler method I get an error because the call goes to the original structs method and not to the method of the other struct. Is there a way to do t