1. I read that C++ templates work by replacing each type variable with a specific type and generating the following function. Depending on how many types are called with each template call, that looks like it could generate a combinatorial explosion. Do they?
2. Does the parametric polymorphism of Rust result in the same combinatorial explosion? Does Rust's parametric polymorphism just generates ad-hoc polymorphic code?
Comments URL: https://news.ycombinator.com/item?id=23253489
Points: 1
# Comments: 0
from Hacker News: Newest https://ift.tt/3bR9gj0
0 comments:
Post a Comment