Skip to content

Add errors7 exercise to show full potential of try operator combined with From trait#2195

Open
gdziadkiewicz wants to merge 8 commits intorust-lang:mainfrom
gdziadkiewicz:add_error7
Open

Add errors7 exercise to show full potential of try operator combined with From trait#2195
gdziadkiewicz wants to merge 8 commits intorust-lang:mainfrom
gdziadkiewicz:add_error7

Conversation

@gdziadkiewicz
Copy link

Thanks for creating the Rustlings! I loved it!

While doing them I felt that the user might miss the full potential of the try operator due to the lack of exercise that shows how well custom error types work with it and From trait. This PR adds an exercise focused on that. I placed it after the first trait exercise to be sure that they understand what they are doing.

Only after creating the thing did I find out that I should have created an issue first - sorry for that!

If it goes in let's squash it.

@mamalieaz
Copy link

salam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants