Re: [racket-users] datatypes

2019-07-17 Thread Ryan Kramer
> > Still, variant reports ‘(a . b) as a ‘pair. and that’s amazing. How is it > obtaining that information? > I just looked it up and yeah, it is pretty cool: (struct->vector '(a . b)) is doing most of the work. See the comments and implementation here:

Re: [racket-users] datatypes

2019-07-17 Thread Kevin Forchione
> On Jul 16, 2019, at 10:36 PM, Alex Knauth wrote: > > > >> On Jul 17, 2019, at 12:16 AM, Kevin Forchione > > wrote: >> >> Hi guys, >> Is there any function in Racket that will return a symbol representation of >> a value’s datatype? We can interrogate them with

Re: [racket-users] datatypes

2019-07-16 Thread Alex Knauth
> On Jul 17, 2019, at 12:16 AM, Kevin Forchione wrote: > > Hi guys, > Is there any function in Racket that will return a symbol representation of a > value’s datatype? We can interrogate them with predicates, but it occurs to > me that this information must be carried in the object’s syntax

[racket-users] datatypes

2019-07-16 Thread Kevin Forchione
Hi guys, Is there any function in Racket that will return a symbol representation of a value’s datatype? We can interrogate them with predicates, but it occurs to me that this information must be carried in the object’s syntax somewhere… otherwise the syntax->datum wouldn’t work. Of course I