{"id":887,"url":"https://github.com/devxoul/Fallback","last_synced_at":"2025-07-30T19:32:56.623Z","repository":{"id":56911065,"uuid":"71986902","full_name":"devxoul/Fallback","owner":"devxoul","description":"💊 Syntactic sugar for Swift do-try-catch","archived":true,"fork":false,"pushed_at":"2016-10-26T21:56:25.000Z","size":12,"stargazers_count":44,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-08T22:45:16.568Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","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/devxoul.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}},"created_at":"2016-10-26T09:19:40.000Z","updated_at":"2024-02-07T07:33:52.000Z","dependencies_parsed_at":"2022-08-21T03:20:12.687Z","dependency_job_id":null,"html_url":"https://github.com/devxoul/Fallback","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxoul%2FFallback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxoul%2FFallback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxoul%2FFallback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxoul%2FFallback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devxoul","download_url":"https://codeload.github.com/devxoul/Fallback/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228178971,"owners_count":17881114,"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-01-05T20:15:33.939Z","updated_at":"2024-12-04T19:32:14.210Z","avatar_url":"https://github.com/devxoul.png","language":"Swift","funding_links":[],"categories":["Code Quality"],"sub_categories":["Other free courses","Getting Started"],"readme":"Fallback\n========\n\n![Swift](https://img.shields.io/badge/Swift-3.0-orange.svg)\n[![Build Status](https://travis-ci.org/devxoul/Fallback.svg?branch=master)](https://travis-ci.org/devxoul/Fallback)\n[![CocoaPods](http://img.shields.io/cocoapods/v/Fallback.svg)](https://cocoapods.org/pods/Fallback)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\nSyntactic sugar for Swift do-try-catch.\n\n## At a Glance\n\n```swift\nvalue = try fallback(\n  try get(\"A\"),\n  try get(\"B\"),\n  try get(\"C\"),\n  try get(\"D\")\n)\n```\n\nis equivalent to:\n\n```swift\ndo {\n  value = try get(\"A\")\n} catch {\n  do {\n    value = try get(\"B\")\n  } catch {\n    do {\n      value = try get(\"C\")\n    } catch {\n      value = try get(\"D\")\n    }\n  }\n}\n```\n\n## Installation\n\n- **Using [CocoaPods](https://cocoapods.org)**:\n\n    ```ruby\n    pod 'Fallback', '~\u003e 0.2'\n    ```\n\n- **Using [Carthage](https://github.com/Carthage/Carthage)**:\n\n    ```\n    github \"devxoul/Fallback\" ~\u003e 0.2\n    ```\n\n- **Using [Swift Package Manager](https://swift.org/package-manager)**:\n\n    ```swift\n    import PackageDescription\n\n    let package = Package(\n      name: \"MyAwesomeProject\",\n      targets: [],\n      dependencies: [\n        .Package(url: \"https://github.com/devxoul/Fallback.git\", majorVersion: 0)\n      ]\n    )\n    ```\n\n## License\n\n**Fallback** is under MIT license. See the [LICENSE](LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevxoul%2FFallback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevxoul%2FFallback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevxoul%2FFallback/lists"}