Re: [racket-users] [racket users] describe variant issue?

2020-09-17 Thread Matthew Flatt
A PR to improve `struct->vector` for CS would be welcome. There relevant code is here: https://github.com/racket/racket/blob/master/racket/src/cs/rumble/struct.ss#L1221 As you'll see, the synthesized name is currently whatever comes out of Chez Scheme's `inspect/object` interface. It could

Re: [racket-users] [racket users] describe variant issue?

2020-09-17 Thread Sam Tobin-Hochstadt
We may change Racket CS so that it produces the same results, but in general the results of `struct->vector` on values that are opaque is not something that should be relied on. The describe library is, I believe, unmaintained, and hasn't been updated in many years. Sam On Thu, Sep 17, 2020 at

Re: [racket-users] [racket users] describe variant issue?

2020-09-17 Thread Kevin Forchione
> On Sep 15, 2020, at 3:11 PM, Sam Tobin-Hochstadt wrote: > > This is a difference in behavior between Racket BC and Racket CS, and > not something in the describe library: > > [samth@homer:~/work/teaching/c211 (master) racket-7.8] racket > Welcome to Racket v7.8. >> (struct->vector 5) >

Re: [racket-users] [racket users] describe variant issue?

2020-09-15 Thread Sam Tobin-Hochstadt
This is a difference in behavior between Racket BC and Racket CS, and not something in the describe library: [samth@homer:~/work/teaching/c211 (master) racket-7.8] racket Welcome to Racket v7.8. > (struct->vector 5) '#(struct:fixnum-integer ...) > ^D [samth@homer:~/work/teaching/c211 (master)