Talking about flow, I was wondering: couldn't something like that be implemented just with comments, leaving us with actually 100% valid javascript? Eg:
// @param somestring [String] yadda yadda
// @return [Boolean]
function somefunction(somestring) {
// @type [Boolean]
var ret;
...
return ret;
}
This would remove any type of "lock in" if you want to use it...