3 ms·
I've written almost entirely object-oriented code for two decades. My programs have almost no global variables. I've tried functional programming in Rust, but
by Animats 9y ago
I've written almost entirely object-oriented code for two decades. My programs have almost no global variables.
I've tried functional programming in Rust, but it's not going well.[1] I don't like the "x.and_then(|foo|).if_even(|bar|).except_on_alternate_tuesdays(|baz|)" style. Rolling your own control structures is not good for readability.
[1] https://github.com/John-Nagle/rust-rssclient/blob/master/src/wordwrap.rs https://github.com/John-Nagle/rust-rssclient/blob/master/src...