{"id":22672203,"url":"https://github.com/jimlynchcodes/unwrap-to-question-mark-challenge","last_synced_at":"2025-03-29T11:24:52.284Z","repository":{"id":186395275,"uuid":"620409310","full_name":"JimLynchCodes/unwrap-to-question-mark-challenge","owner":"JimLynchCodes","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-29T04:14:57.000Z","size":10,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-04T11:55:08.786Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JimLynchCodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-03-28T16:14:21.000Z","updated_at":"2023-03-29T01:17:32.000Z","dependencies_parsed_at":"2024-01-24T07:00:17.372Z","dependency_job_id":null,"html_url":"https://github.com/JimLynchCodes/unwrap-to-question-mark-challenge","commit_stats":null,"previous_names":["jimlynchcodes/unwrap-to-question-mark-challenge"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimLynchCodes%2Funwrap-to-question-mark-challenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimLynchCodes%2Funwrap-to-question-mark-challenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimLynchCodes%2Funwrap-to-question-mark-challenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimLynchCodes%2Funwrap-to-question-mark-challenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JimLynchCodes","download_url":"https://codeload.github.com/JimLynchCodes/unwrap-to-question-mark-challenge/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246176131,"owners_count":20735709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-09T16:18:18.541Z","updated_at":"2025-03-29T11:24:52.144Z","avatar_url":"https://github.com/JimLynchCodes.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unwrap-to-question-mark-challenge\n\n## The Challenge\nThe challenge in this project is to refactor this Rust code that uses \"unwrap\" to instead use the question mark operator. Feel free to do any additional refactorings as well!\n\n\u003cbr/\u003e\n\n## Why?\nThe `unwrap` makes any error immediately crash your program and unwind. While this can be nice for moving quickly during development, panicking will crash every thread and makes your function signatures less descriptive. For this reason, many Rustaceans recommend refactoring `unwrap` to `?` before considering the code \"production ready\".\n\nChanging from unwrap to ? can be tricky though, especially in situations (like this one) where a function could throw different kinds of errors. The hypothesis is that by solving this relatively simple unwrap-to-? you learn how to go from unwrap to ? in general!\n\n\u003cbr/\u003e\n\n## How To Submit A Solution\nOpen a PR with your refactorings to submit your solution!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimlynchcodes%2Funwrap-to-question-mark-challenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimlynchcodes%2Funwrap-to-question-mark-challenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimlynchcodes%2Funwrap-to-question-mark-challenge/lists"}