crystal-by-example
crystal-by-example copied to clipboard
Input example #1
Adds an example from standard input. Please take a look.
I think the most useful example of input would be asking the user to type "yes" or "no" and looping until a valid input is entered.
This one is too basic, and just doing nothing if the input fails isn't exactly good advice.