What is Nostr?
rain 🌦️ /
npub18c4…6gwd
2024-02-24 22:47:19

rain 🌦️ on Nostr: The winnow library for #RustLang is the most fun I've had writing parsers in my ...

The winnow library for #RustLang is the most fun I've had writing parsers in my entire life. It's taken a thing that I've always dreaded and turned it into a joy.

I love two things about it:

1. It uses &mut &[u8], &mut &str, &mut <token stream ref>, etc. That is simply so much nicer to use than consuming a &[u8] and returning a &[u8].

2. It isn't all-encompassing! it encourages you to interleave imperative and functional code, just like idiomatic Rust in general.

https://docs.rs/winnow
Author Public Key
npub18c4r5n6lljmmynfhn87qp3svcpkhvjsleavpvtrea3d302y3auls6s6gwd