{"id":16310646,"url":"https://github.com/gfldex/perl6-operator-defined-alternation","last_synced_at":"2026-02-16T11:33:10.000Z","repository":{"id":146215171,"uuid":"62565751","full_name":"gfldex/perl6-operator-defined-alternation","owner":"gfldex","description":"Provides a ?? !! equivalent that tests for definedness instread of trueness.","archived":false,"fork":false,"pushed_at":"2017-07-30T08:15:59.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-05T19:58:57.266Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl 6","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gfldex.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-04T13:50:08.000Z","updated_at":"2020-07-22T07:12:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"77e6f193-305f-4ab2-aec0-0a4534055a17","html_url":"https://github.com/gfldex/perl6-operator-defined-alternation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gfldex/perl6-operator-defined-alternation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfldex%2Fperl6-operator-defined-alternation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfldex%2Fperl6-operator-defined-alternation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfldex%2Fperl6-operator-defined-alternation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfldex%2Fperl6-operator-defined-alternation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gfldex","download_url":"https://codeload.github.com/gfldex/perl6-operator-defined-alternation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfldex%2Fperl6-operator-defined-alternation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29506768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-10T21:42:40.854Z","updated_at":"2026-02-16T11:33:09.983Z","avatar_url":"https://github.com/gfldex.png","language":"Perl 6","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Operator::defined-alternation\n[![Build Status](https://travis-ci.org/gfldex/perl6-operator-defined-alternation.svg?branch=master)](https://travis-ci.org/gfldex/perl6-operator-defined-alternation)\n\nPerl 6 provides control statements and operators to test for definedness instead of trueness, to provide ease of typing and a clear statement of intend from the programmer. Sadly there is currently no way to define your own ternary operators with Rakudo. However, we can emulate operators with 3 arguments with a chain of 2 infix operators, as long as we provide a type for the 2nd infix to handle dispatch properly.\n\n## Usage:\n```\nuse v6;\nuse Operator::defined-alternation;\n\nmy $falsish = 2 but False;\nsay $falsish ?// 'defined' !! 'undefined';\n# OUTPUT: defined\n# What is equivalent to:\nsay $falsish.defined ?? 'defined' !! 'undefined'; \n# OUTPUT: defined\n# But opposed to:\nsay $falsish ?? 'true' !! 'false'; \n# OUTPUT: false \n```\n\n## License\n\n(c) Wenzel P. P. Peppmeyer, Released under Artistic License 2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgfldex%2Fperl6-operator-defined-alternation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgfldex%2Fperl6-operator-defined-alternation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgfldex%2Fperl6-operator-defined-alternation/lists"}