I'm getting increasingly fired up about #Rust.

But I'm frustrated by one bit of syntax.

I've seen this several times and I don't know what it's called, so I don't know where to look it up.

a::b::<A>().

I presume this is notifying B about the type to register. But I'm not sure how that syntax is named.

Can someone tell me?

Follow

@Elucidating
Welp, it's the turbofish, which is a weird thing that was brought into being by the avoidance of the weird tax, which is to by following the same stupid <> syntax for templates that C++ uses, wheareas they should have used [], or even «» or even removing > > as an operator (what's so wrong about rsh(x)), and lsh(x) instead, how often do we need to do a fucking bitshift anyway?) and so here we are answering questions that should have never have been needed to be posed.

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.