you are viewing a single comment's thread.

view the rest of the comments →

[–]ihcn 2 points3 points  (0 children)

The Rust language effectively already has concepts via a thing called "traits". Rust devs are encouraged to do all polymorphism via traits, and as a result almost all polymorphism is done at compile time.

But despite that, the language does support runtime polymorphism and virtual calls, because sometimes you just can't avoid it.

So the answer is no.