rustlings icon indicating copy to clipboard operation
rustlings copied to clipboard

generics3: Provide Grading Scale?

Open AndrooFrowns opened this issue 5 years ago • 3 comments

While it's not technically required to implement the trait for the purpose of passing the tests, the instructions seem to imply familiarity with the 1.0 - > 5.5 grading scale. For many (myself included) this may not be true.

Would it be worth either changing to an exercise that doesn't rely on external knowledge, or to add in the information required to fully implement the grade scale?

AndrooFrowns avatar Jul 27 '20 00:07 AndrooFrowns

@AndrewFrauens Yes! Good idea.

manyinsects avatar Jul 27 '20 10:07 manyinsects

I totally agree, that the description and the hint (see #625) is kind of vague and possibly misleading. But you actually don't need information on how the different grading systems work, you simply can change the f32 of Gary Plotter's grade to a str to pass, so the description could simple mention this. (And the hint should probably loose the reference to implement a trait).

VuiMuich avatar Mar 25 '21 13:03 VuiMuich

Although I can agree with @VuiMuich that you could adapt the exercise, the source file assumes that everyone is used with the US grade system, and may present a challenge for people learning Rust who have now to cope with/guess a "foreign" grading system; this is probably diverting from the intent of the project. The least that could be done is to document within the source code what is the mapping between alphabetic grades and numerical ones. Or refer to an external resource (Wikipedia?)

keldonin avatar Sep 02 '21 14:09 keldonin