{"id":21679223,"url":"https://github.com/redetection/swiftyobjc","last_synced_at":"2025-10-26T15:37:55.141Z","repository":{"id":62456965,"uuid":"148464975","full_name":"ReDetection/SwiftyObjC","owner":"ReDetection","description":"Type Inference for Objective-C and iflet sugar, finally as a cocoapod.","archived":false,"fork":false,"pushed_at":"2018-09-12T10:50:52.000Z","size":9,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-25T14:22:40.162Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/ReDetection.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":"2018-09-12T10:47:11.000Z","updated_at":"2023-09-04T15:29:36.000Z","dependencies_parsed_at":"2022-11-02T00:17:48.431Z","dependency_job_id":null,"html_url":"https://github.com/ReDetection/SwiftyObjC","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReDetection%2FSwiftyObjC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReDetection%2FSwiftyObjC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReDetection%2FSwiftyObjC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReDetection%2FSwiftyObjC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ReDetection","download_url":"https://codeload.github.com/ReDetection/SwiftyObjC/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244591485,"owners_count":20477710,"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-11-25T14:49:46.875Z","updated_at":"2025-10-26T15:37:55.086Z","avatar_url":"https://github.com/ReDetection.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftyObjC\n\n```ObjC\nlet a = @\"hello\"; //a is `NSString *const` now\na = @\"world\"; //produces error\n\nvar b = 5; //b is `const int` now\nb = 10; //fine\n\niflet(c, [self getNullableString]) {\n    // c is not nil here\n}\n// c is not available here\n\nifletwhere(c, [self getNullableString], c.length \u003e 5) {\n    // can have additional constraints\n}\n\n```\n\n## Requirements\n\nXcode 8\n\n## Installation\n\nSwiftyObjC is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'SwiftyObjC'\n```\n\n## guard/guard let\n\nThey are possible but not implemented because it has two significant flaws:\n* I can't ensure else block has return/throw at compile time. Without this I find it too dangerous\n* I can't ensure one wrote `else` keyword, so again dangerous.\n\nHowever, I'm looking forward to implement these, so if you found a way how to trick compiler, feel file a note or PR.\n\n## License\n\nSwiftyObjC is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredetection%2Fswiftyobjc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredetection%2Fswiftyobjc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredetection%2Fswiftyobjc/lists"}