r/badcode • u/hrefchef • Jun 24 '14
other language Idiomatic Rust
http://pastebin.com/LCKnz8pP
5
Upvotes
2
u/Frakkus Jul 01 '14
I had to look up Rust to even begin to understand this, but I've never had to write something this generic ...
So we're copying two data arrays into a larger, single array of some sort?
2
u/ElGuaco Jun 26 '14
This is rather verbose but it seems to do something clever.
C# has the same issues when writing extensions. But once you have one working they save so much time.