Use rust they said… It's awesome they said…
I never failed so hard on merging two strings together in any other language…, even C is trivial here by using the strcpy. Not without danger, but trivial.
Maybe someone has mercy and can explain my what I'm doing wrong? 😥
@sheogorath I think you're just RUSTy..... 😂😂😂😂
@sheogorath How did you write the whole thing while making a few silly mistakes?
@mike With some luck and a lot of examples I guess :D
I mean, I'm aware of the basic concepts of Rust even when this is mainly from a theoretical perspective, thought it's a nice idea to start something more practical ^^
And actually it worked quite well, until I tried to no longer print stuff directly but collecting it into one big string before printing it.
I'll going forward with this tonight, seems like I didn't paid enough attention to the mut-statement.
@sheogorath You can also simplify this by using "fold": https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=cd68bcc7617a24531549c7c558ccd3bf
No need for mutable anything.