News for hackers. Stuff that matters.
Re:Go generics may use square brackets [] not parenthesis () by deathanatos on Wednesday July 15, 2020 @12:51AM (#23841461)
And this is why the Turbofish exists in Rust.

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.)
Re:Go generics may use square brackets [] not parenthesis () by 72deluxe on Wednesday July 15, 2020 @05:45AM (#23843068)
No way. Really very informative, thank you! And I will stick with C++, thank you!