Would it be possible to allow calling of untyped code? I see in the implementation that this is disallowed, so I'm mostly asking if you are philosophically opposed to this or if this is a current implementation detail.
One thing we did for Hack at Facebook was had an annotation in the file saying if it was strict and in those files they wouldn't allow outbound calls to unchecked code, but for non-strict files you could call untyped code and it would do inference as best it could and mark as Any when it can't.
Would it be possible to allow calling of untyped code? I see in the implementation that this is disallowed, so I'm mostly asking if you are philosophically opposed to this or if this is a current implementation detail.
One thing we did for Hack at Facebook was had an annotation in the file saying if it was
strict
and in those files they wouldn't allow outbound calls to unchecked code, but for non-strict files you could call untyped code and it would do inference as best it could and mark asAny
when it can't.