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 may be overlooking something :)
I'm not sure what you mean by "carried in the object's syntax" or why syntax->datum is relevant. Could you clarify with a concrete example?
Anyway putting aside the syntax part and only looking at values, the `describe` [1] package, in particular the `variant` [2] function might be helpful to you or not depending on what you mean by "datatype”.