IronPython compile time check against CLR libraries?

I know that IronPython is a dynamically typed language, so what I ask sounds pretty silly, but is it possible to do something with the IronPython script to make sure that changing the CLR libraries to which it refers does not lead to a runtime error during script execution?

I ask that I wrote a library referenced by IronPython scripts in C #, and I want to find out if I broke any interface used by IronPhon scripts when I change the C # library. This is easy to do with another C # project by simply compiling the code and looking for compilation errors, but this does not work when compiling IronPython scripts.

Any ideas?

+4
source share
2 answers

No, at compile time there is no way to statically verify that interface changes have not broken your IronPython code. This is the nature of dynamic languages. Such errors are presented at runtime.

+2
source

A good set of quick unit tests would be a good alternative to checking compile time.

+1
source

All Articles