4 ms·
What's the difference between static typing with an Any type and optional typing?
by 6gvONxR4sf7o 7y ago
What's the difference between static typing with an Any type and optional typing?
- jesseschalken 7y agoAn "Any type" is optional typing if you don't need to downcast it in order to use it, like the "any" type in TypeScript and Flow. If the "Any" type is just a top type but you have to downcast it to use it, like in Kotlin, then it's not considered optional typing, since you still have to talk about types ;).
- 6gvONxR4sf7o 7y agoThat's very clear and interesting. Thanks :)