News for hackers. Stuff that matters.
Re:Why does TypeScript have be the answer to anything? by JackC on Tuesday October 02, 2012 @04:37PM (#4604120)
I was curious what PyCharm would handle that. Here's a screenshot: http://imgur.com/IvwG5

Basically it will complain if neither Car or Tree have a DriveOnExpressway method, but it's fine if one of them does -- the warning goes away if I uncomment the method. So there's ways to fall through the safety net, but lots of things it will catch.

(In Javascript, it's looser -- it only flags a potential problem if "DriveOnExpressway" isn't defined at all in the file.)

There are no comments on this comment yet.