Remix.run Logo
Levitating 5 days ago

The first statement defines a closure. The second is an if-let statement. It's not chaotic, you're just unfamiliar with the syntax.

I actually find the Rust syntax very natural, more than C in some areas.

johnisgood 4 days ago | parent [-]

More than C? Highly doubt that.

Levitating 4 days ago | parent [-]

Arrays are initialized with curly braces but the type notation uses brackets.

typedef takes the identifier at the end of the statement.

The asterisk is used to de-reference but used to denote a reference in types.

While loops may take the condition after the block.