Rust diary: TIL a bit of types, difference between &str and String (but didn’t put in practice) and some basic control flow.
The good: I can use range and for x in iterable.
The bad: x +=1 is allowed but not i++
The ugly: No ternary operator?!? I don’t see why so much hate Ternary operators are very simple, concise and easy to read. A convoluted ternary should be a traditional if, and if it was convoluted in first place it might need refactor anyways as an if-else /rant
#rust #learningRus