I think if it took something like JSdoc and have it more teeth you could do something like this in just about any of the dynamically typed languages.