{"id":16300024,"url":"https://github.com/froggs/p6-overload-constant","last_synced_at":"2025-04-09T21:46:32.689Z","repository":{"id":23367777,"uuid":"26729013","full_name":"FROGGS/p6-overload-constant","owner":"FROGGS","description":null,"archived":false,"fork":false,"pushed_at":"2017-08-18T18:53:18.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T13:48:28.796Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FROGGS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-16T21:42:28.000Z","updated_at":"2017-08-18T18:42:14.000Z","dependencies_parsed_at":"2022-07-24T23:16:22.668Z","dependency_job_id":null,"html_url":"https://github.com/FROGGS/p6-overload-constant","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FROGGS%2Fp6-overload-constant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FROGGS%2Fp6-overload-constant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FROGGS%2Fp6-overload-constant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FROGGS%2Fp6-overload-constant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FROGGS","download_url":"https://codeload.github.com/FROGGS/p6-overload-constant/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119439,"owners_count":21050754,"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-10T20:50:01.725Z","updated_at":"2025-04-09T21:46:32.666Z","avatar_url":"https://github.com/FROGGS.png","language":"Perl 6","funding_links":[],"categories":[],"sub_categories":[],"readme":"## overload::constant\n\nIt is meant to work a bit like P5's overload::constant[1], though it is kind of pre-alpha here.\n\n## USAGE\n\n```perl6\n    sub integer { \"i$^a\" }\n    sub decimal { \"d$^a\" }\n    sub radix   { \"r$^a\" }\n    sub numish  { \"n$^a\" }\n    use overload::constant \u0026integer, \u0026decimal, \u0026radix, \u0026numish;\n\n    ok 42      ~~ Str \u0026\u0026 42      eq 'i42',      'can overload integer';\n    ok 0.12    ~~ Str \u0026\u0026 0.12    eq 'd0.12',    'can overload decimal';\n    ok .1e-003 ~~ Str \u0026\u0026 .1e-003 eq 'd.1e-003', 'can overload decimal in scientific notation';\n    ok :16\u003cFF\u003e ~~ Str \u0026\u0026 :16\u003cFF\u003e eq 'r:16\u003cFF\u003e', 'can overload radix';\n    ok NaN     ~~ Str \u0026\u0026 NaN     eq 'nNaN',     'can overload other numish things';\n```\n\n[1] http://perldoc.perl.org/overload.html#Overloading-Constants\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffroggs%2Fp6-overload-constant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffroggs%2Fp6-overload-constant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffroggs%2Fp6-overload-constant/lists"}