Hacker News new | ask | show | jobs
by japanuspus 2395 days ago
I did part of last year in rust and found that indeed iterating over lines and splits worked quite well.

Also had a good learning experience using the nom parser combinator package [0], but this takes a bit of code (that you can often reuse between days).

If you are aiming for fast solutions, the !scan macro of serde-scan [1] is made for exactly this, but then you are far outside the core language...

[0]: https://crates.io/crates/nom [1]: https://docs.rs/serde_scan/0.3.2/serde_scan/macro.scan.html