First impressions on Rust
I really like the expressiveness of the language. I’m writing code to read GF files from Metafont right now and there’s the Knuthian 1–4 byte parameter reading. This ends up being rather elegant in Rust, particularly the 3-byte version: pub fn read3<R: Read>(input: &mut R) -> io::Result<i32> { let mut buf = [0u8; 4]; input.read(&mut […]
Recent Comments