You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be nice to sequence this exercise in a way that helps people leverage the pattern matching powers of match, not just showing the solution at the end.
Also, there can be a trailing data corner case by not checking that the first newline is the end of the data.
Leave it as an extra credit, along with a "try to do it with a single match"?
I had an idea to simplify this example - don't require the terminating newline, and change the spec to say that all leading and trailing whitespace is trimmed before processing.
https://github.com/ferrous-systems/rust-exercises/blob/main/exercise-book/src/simple-db.md
Add more match. more match more match! chant grows!
cc @miguelraz
Tasks
The text was updated successfully, but these errors were encountered: