I personally only tend to use + when there's two or maybe three things at most, in any language, and then switch to an API like this if it exists for more complex things, no matter the language. I find it much easier to read. YMMV.
(And you can use + in Rust, but you'd have to call .to_string() on the integer first)
I personally only tend to use + when there's two or maybe three things at most, in any language, and then switch to an API like this if it exists for more complex things, no matter the language. I find it much easier to read. YMMV.
(And you can use + in Rust, but you'd have to call .to_string() on the integer first)