Comment by Levitating

Comment by Levitating a day ago

2 replies

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 a day ago

More than C? Highly doubt that.

  • Levitating a day ago

    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.