I have a program at work that does something like
Do you want to remove x from y? [y/n]
Do you want to remove z from y? [y/n]
Do you want to remove a from y? [y/n]
etc. etc, 100s of times. yes is a lifesaver.
I also like how it's used as an experiment for basic optimization: https://www.reddit.com/r/rust/comments/4wde08/optimising_yes...
4.5 GB/s of 'y'. Hilarious.
I have a program at work that does something like
Do you want to remove x from y? [y/n]
Do you want to remove z from y? [y/n]
Do you want to remove a from y? [y/n]
etc. etc, 100s of times. yes is a lifesaver.
I also like how it's used as an experiment for basic optimization: https://www.reddit.com/r/rust/comments/4wde08/optimising_yes...
4.5 GB/s of 'y'. Hilarious.