News for hackers. Stuff that matters.
Re:TypeScript – The Myth of the Superset by k__ on Sunday October 02, 2016 @05:29PM (#12624344)
To me it seemed the other way around. By casting, I'm telling the compiler that it has a mousePosition property.

But I think you're right. This is an simple example and the Player object could have a huge bunch of properties I don't need to guess later, I just need to cast and be done with it.

There are no comments on this comment yet.