Hi folks,

The following paragraph appears in the new tutorial on interfaces:

  The useful thing about value polymorphism is that it does not have to be
  static. If object-oriented languages only let you call a method on an object
  when they knew exactly which sub-type it had, that would not get you very
  far. To be able to call methods on types that aren't known at compile time,
  it is possible to specify 'bounds' for type parameters.

Note the phrase "aren't known at compile time." That reads as if bounded types
offer runtime polymorphism. (They don't, do they?)

Cheers,
Graham
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to