in reply to Re^12: Introspecting function signatures
in thread Introspecting function signatures

My take on it I think this can be done with a combination of PadWalker to scan the sub, and variable attributes to initialize them as fixture objects.

Unfortunately I'll be several days AFK, so I can't show you a POC.

Anyway I think you are rather inclined to do the PyWay and I've probably missed some edge cases.

(Tho you already mentioned py-decorators, and that's attributes in Perl.)

Feel free to ignore my thoughts and do as you like ...

Hope this helped nonetheless... :)

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^13: Introspecting function signatures