3 ms·
I didn't mention run-time dynamic dispatch, only a function dictionary (which C++ calls a vtable). Using traits for bounded subtype polymorphism is much like h
by zozbot234 3y ago
I didn't mention run-time dynamic dispatch, only a function dictionary (which C++ calls a vtable). Using traits for bounded subtype polymorphism is much like having a dictionary of functions that can be resolved completely at compile time, making it possible to use monomorphization and static dispatch.
- steveklabnik 3y agoOkay. It's clear we're using some words in very different ways (this is not subtype polymorphism in Rust either) but I see what you're getting at.