exercism / v3

The work-in-progress project for developing v3 tracks
https://v3.exercism.io
Other
170 stars 162 forks source link

[Rust] String-vs-str concept exercise #3058

Closed gilescope closed 3 years ago

gilescope commented 3 years ago

Creating well escaped csv files is something every developer should strive for so I think this is a helpful exercise! Also demostrates consumption of an owned value. (Fixes #1095 )

gilescope commented 3 years ago

It's says: "Forgot to run Prettier?" - is there a tool I should be running to check the .md files conform?

coriolinus commented 3 years ago

/format

github-actions[bot] commented 3 years ago

For security reasons, /format does not trigger CI builds when the PR has been submitted from a fork. To make the required checks pass, you need to trigger a build through one of the following ways:

ghost commented 3 years ago

Thanks for contributing @gilescope! I love the CSV idea. That is something I have to work with frequently so find this a grand combination of Rust and a practical problem.

It's says: "Forgot to run Prettier?" - is there a tool I should be running to check the .md files conform?

Pro tip: you can run the formatting script locally if you want with EXERCISM_PRETTIER_VERSION=2.1.2 ./bin/format.sh. It runs it on everything in the repository.

gilescope commented 3 years ago

Ok updated version.

There's no slicing done at all. I think that's fine and lives in a more &str focused exercise. - maybe something parsing related? (A get out of this without allocating exercise... -- hmm makes me wonder if we can have some exercises that are no_std so that we can teach &str without there being the possibiliity of allocating... yes there's some fun potentially to be had there.)

gilescope commented 3 years ago

Cool - I am sure more things will come to me once I see it in situ on the site. I'm sure we will revisit as I know more about the process.