|
|
|
|
|
by amitport
1101 days ago
|
|
> "just make it so I don't have to do crazy checks on properties before casting to a class." You do have 'instanceof' at runtime, so unless you mean some other type of 'class', casting to a class is really a non-issue (and you don't really 'cast'... since dynamic typing and all). If you mean some more advanced concept (e.g., structural type runtime checking), think how you would do it in statically typed languages (is it really better?). |
|