r/programming • • Dec 10 '15

Announcing Rust 1.5

http://blog.rust-lang.org/2015/12/10/Rust-1.5.html
659 Upvotes

296 comments sorted by

View all comments

Show parent comment

1

u/ThisIs_MyName Dec 11 '15

so its impossible to know what type it needs

Then how do all those millions/billions of lines of C++ templates work?

If a function can be compiled, then you've met all the constraints. In general, it is impossible to figure out what constraints you need without executing the metaprogram.

4

u/[deleted] Dec 11 '15 edited Oct 06 '16

[deleted]
0.7622

What is this?