iHiD / v3

The work-in-progress project for developing v3 tracks
Other
0 stars 1 forks source link

[rust] Implement new concept exercise: turbofish #32

Closed coriolinus closed 4 years ago

coriolinus commented 4 years ago

This issue describes how to implement the turbofish concept exercise for the rust track.

Goal

Rust offers the ::<_> operator, popularly known as the turbofish. AFAIK no other language has this operator, which is used for offering hints to the type inferencer where it would otherwise fail.

In v2, we have shoehorned some instruction about this operator into the reverse-string exercise, but this comes with a drawback: it implies that people should use the manual operator even when the code is simpler and clearer without it.

Things to teach

Things not to teach

Concepts

Prequisites

Implementing

A sketch of an exercise implementation exists on the playground

Help

If you have any questions while implementing the exercise, please post the questions as comments in this issue.

coriolinus commented 4 years ago

I just noticed I created this issue in the wrong repo. @iHiD, will you move this issue to the exercism repo, please?

iHiD commented 4 years ago

I can't move across repos, sorry. You'll need to copy+paste it there.