{"id":16515258,"url":"https://github.com/pine/p5-scope-undefsafe","last_synced_at":"2025-07-18T17:04:36.868Z","repository":{"id":56835494,"uuid":"56959987","full_name":"pine/p5-Scope-UndefSafe","owner":"pine","description":":telescope: Scope::UndefSafe has two functions to limit scope undef safety.","archived":false,"fork":false,"pushed_at":"2018-04-11T12:43:42.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T03:14:08.412Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/Scope::UndefSafe","language":"Perl","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/pine.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","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-04-24T07:36:51.000Z","updated_at":"2018-04-11T12:43:44.000Z","dependencies_parsed_at":"2022-09-09T18:00:43.518Z","dependency_job_id":null,"html_url":"https://github.com/pine/p5-Scope-UndefSafe","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fp5-Scope-UndefSafe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fp5-Scope-UndefSafe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fp5-Scope-UndefSafe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fp5-Scope-UndefSafe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pine","download_url":"https://codeload.github.com/pine/p5-Scope-UndefSafe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241533650,"owners_count":19977826,"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-10-11T16:16:25.801Z","updated_at":"2025-03-02T15:54:06.992Z","avatar_url":"https://github.com/pine.png","language":"Perl","readme":"[![Build Status](https://travis-ci.org/pine/p5-Scope-UndefSafe.svg?branch=master)](https://travis-ci.org/pine/p5-Scope-UndefSafe) [![Build Status](https://img.shields.io/appveyor/ci/pine/p5-Scope-UndefSafe/master.svg?logo=appveyor)](https://ci.appveyor.com/project/pine/p5-Scope-UndefSafe/branch/master) [![Coverage Status](http://codecov.io/github/pine/p5-Scope-UndefSafe/coverage.svg?branch=master)](https://codecov.io/github/pine/p5-Scope-UndefSafe?branch=master)\n# NAME\n\nScope::UndefSafe - The functions to limit the scope.\n\n# SYNOPSIS\n\n    use Scope::UndefSafe qw/let apply/;\n\n    my $obj = AnyObject-\u003enew;\n    let { $_-\u003emethod() } $obj; # `method` is executed.\n    apply { $_-\u003emethod() } $obj; # `method` is executed, and return $obj.\n\n    $obj = undef;\n    let { $_-\u003emethod() } $obj; # `method` is not executed.\n    apply { $_-\u003emethod() } $obj; # `method` is not executedm, but return $obj.\n\n# DESCRIPTION\n\nScope::UndefSafe has two functions to limit scope undef safety.\n\n## METHODS\n\n### `let`\n\nInvoke block if pass non undef value as second argument.\nAnd return block returned value.\n\nThe following two are the same behavior.\n\n    let { $_-\u003emethod() } $obj;\n    $obj ? $obj-\u003emethod() : undef;\n\n### `apply`\n\nInvoke block if pass non undef value as a second argument.\nAnd return a second argument.\n\nThe following two are the same behavior.\n\n    apply { $_-\u003emethod() } $obj;\n    $obj ? do { $obj-\u003emethod(); $obj } : undef;\n\n# SEE ALSO\n\n- [stdlib.kotlin.let](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/let.html)\n- [stdlib.kotlin.apply](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/apply.html)\n\n# LICENSE\n\nThe MIT License (MIT)\n\nCopyright (c) 2016-2018 Pine Mizune\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n# AUTHOR\n\nPine Mizune \u003cpinemz@gmail.com\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpine%2Fp5-scope-undefsafe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpine%2Fp5-scope-undefsafe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpine%2Fp5-scope-undefsafe/lists"}