4 ms·
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 sy
by Levitating 1y 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 1y agoMore than C? Highly doubt that.
- Levitating 1y agoArrays 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.