Re: [racket-users] How to introspect a function? (and/or other things)

2017-08-22 Thread George Neuner
On 8/22/2017 1:59 PM, David Storrs wrote: I've been thinking about various introspection possibilities     : What about functions?  Is there a way to answer the following questions?: - How many arguments do you require? - How many values do you return? - What is your contract?

[racket-users] How to introspect a function? (and/or other things)

2017-08-22 Thread David Storrs
I've been thinking about various introspection possibilities lately, partially because I've encountered places where they'd be useful and partially because it's interesting. I found module->exports and module->imports which will let me introspect a module to see what it provides and consumes.