4 ms·
This works just as well in dynamically typed language by using your language's version of .getClass() or instanceof. It would just happen at runtime instead of
by lurker19 15y ago
This works just as well in dynamically typed language by using your language's version of .getClass() or instanceof.
It would just happen at runtime instead of compile time.
It only wouldn't work in very weakly typed languages like ... assembler?
- pyre 15y agoI was evaluating 5 + a to mean int + int, because the pointer is stored in an int. Maybe I should have just stated, "It's been awhile since I've work with pointers." Most dynamic languages don't have a concept of pointers, or at least not pointer math.