Re:Why Not Rewrite It in Rust? (2016)
by Covzire on Friday June 07, 2019 @10:44AM
(#20125032)
That doesn't seem too bad (Though it's still no C# with the + operator), I'll check that out next time I'm in the Rust neighborhood. Thanks.
[ Parent
| on HN ]
Re:Why Not Rewrite It in Rust? (2016)
by steveklabnik on Friday June 07, 2019 @10:46AM
(#20125058)
No problem!
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)