You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement the core library inspect to provide reflection capabilities:
importinspectimportmathnumdefmultiply_these(numa,numb,numc)numr=a * b * creturnrendprintmultiply_these(3,4,5)# Should print 60# Information relatedprintinspect.parameter_count('multiply_these')# Should print 3printinspect.parameter_types('multiply_these')# Should print ['num', 'num', 'num']printinspect.return_type('multiply_these')# Should print ['num']printinspect.decision_length('multiply_these')# Should print 0printinspect.context('multiply_these')# Should print 'dev.kaos'printinspect.module_context('multiply_these')# Should print 'dev.kaos'printinspect.module('multiply_these')# Should print ''# Call relatedprintinspect.call('multiply_these',[3,4,5])# Should print 60printinspect.call('sin',[30],'math')# Should print 0.5
The text was updated successfully, but these errors were encountered:
@naltun yes, you're right. `inspect will be an important library to unveil the information about the language internal workflow and it will be required to write a debugger and intellisense like IDE tools for this language.
Implement the core library
inspect
to provide reflection capabilities:The text was updated successfully, but these errors were encountered: