Removed ambiguity

This commit is contained in:
Alex Vig
2017-10-05 13:27:06 -04:00
parent bc875926b7
commit 3e2dab5413

View File

@@ -349,9 +349,9 @@ keeps track of the code that might be used when a method is called and figures
out at runtime which code needs to be used for a particular method call. This
is known as *dynamic dispatch*, and theres a runtime cost when this lookup
happens. Dynamic dispatch also prevents the compiler from choosing to inline a
methods code, which prevents some optimizations. We did get extra flexibility
in the code that we wrote and were able to support, though, so its a tradeoff
to consider.
methods code which in turn prevents some optimizations. We did get extra
flexibility in the code that we wrote and were able to support, though, so its
a tradeoff to consider.
### Object Safety is Required for Trait Objects