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?
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.
2 matches
Mail list logo