3 ms·
And this is why the Turbofish exists in Rust. https://github.com/rust-lang/rust/blob/master/src/test/ui/bastion-of-the-turbofish.rs#L3 https://github.com/rust-
by deathanatos 6y ago
And this is why the Turbofish exists in Rust.
https://github.com/rust-lang/rust/blob/master/src/test/ui/bastion-of-the-turbofish.rs#L3 https://github.com/rust-lang/rust/blob/master/src/test/ui/ba...
The key to parsing that is line 35. Is the line a tuple containing two booleans, the first the result of a less than, the second the result of a greater than, or is the line a templated function call, with two template arguments, "woe" and "is"?
(It is the former in Rust, and the latter is the apparently magical third option of
oh::<woe, is>(me)
though of course "woe" and "is" would need to be types, not variables, in that case.)
- 72deluxe 6y agoNo way. Really very informative, thank you! And I will stick with C++, thank you!