4 ms·
Rust is next? Jokes aside, pipe operators in programming languages have a interesting side effect of enabling railway oriented programming that I miss the most
by dev_l1x_be 1y ago
Rust is next? Jokes aside, pipe operators in programming languages have a interesting side effect of enabling railway oriented programming that I miss the most when not working in F#.
- simonask 1y agoThe way function/trait resolution works in Rust, it's actually already quite idiomatic to code in this style (just using the dot operator). The standard library Iterator is a great example of this. :-) I don't think there's any significant push for an even terser syntax at the moment.
- realharo 1y agoThere is the `tap` crate (https://crates.io/crates/tap https://crates.io/crates/tap) which adds `tap`, `pipe` and their variants to everything.