Guest User

Untitled

a guest
Apr 20th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. C++, because a copy of the template code is generated for each type parameter A. ML
  2. compilers generally compile one copy of code that is used for all types A. (However, each
  3. instance of the template expansion is smaller than the single copy generated by ML.)
  4. ii. C++, because each copy of the code can be optimized for the specific type parameter A. In
  5. ML, the code has to accept any type, so there are fewer opportunities for optimization,
  6. and the code has to use pointers to values instead of values themselves so that all data
  7. is the same size.
Add Comment
Please, Sign In to add comment