{"id":18150037,"url":"https://github.com/farnyser/cpp-sharpener","last_synced_at":"2026-04-12T22:45:22.050Z","repository":{"id":146172193,"uuid":"84242077","full_name":"farnyser/cpp-sharpener","owner":"farnyser","description":"C++ with a C# flavor","archived":false,"fork":false,"pushed_at":"2017-07-16T18:37:06.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T22:38:51.838Z","etag":null,"topics":["cpp","csharp","transformer"],"latest_commit_sha":null,"homepage":null,"language":"C++","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/farnyser.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-07T20:18:09.000Z","updated_at":"2017-07-19T21:19:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"9f3cd3a0-0eff-4484-a3a4-9b8e0d8cc1f6","html_url":"https://github.com/farnyser/cpp-sharpener","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/farnyser/cpp-sharpener","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farnyser%2Fcpp-sharpener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farnyser%2Fcpp-sharpener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farnyser%2Fcpp-sharpener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farnyser%2Fcpp-sharpener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farnyser","download_url":"https://codeload.github.com/farnyser/cpp-sharpener/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farnyser%2Fcpp-sharpener/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268448362,"owners_count":24252019,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cpp","csharp","transformer"],"created_at":"2024-11-02T00:07:14.989Z","updated_at":"2026-04-12T22:45:17.024Z","avatar_url":"https://github.com/farnyser.png","language":"C++","readme":"C++ sharpener\n==============\n\nMini project aiming to add some C# flavor to C++ !\n\nExample\n-------\n\nBuild a lambda C# style:\n\n```c++\nauto square = x =\u003e x * x;\nstd::cout \u003c\u003c square(2) \u003c\u003c std::endl; // output \"4\"\n```\n\nSimple named function:\n\n```c++\nint foobar() =\u003e 42;\n```\n\nNull-coalescing operator:\n\n```c++\nint a = 0;\nstd::cout \u003c\u003c a ?? 3 \u003c\u003c std::endl; // output \"3\" \n```\n\nNull-conditional operator:\n\n```c++\nstruct foo { auto bar() =\u003e \"hello !\"; };\nstd::shared_ptr\u003cfoo\u003e a = nullptr;\nstd::cout \u003c\u003c (a?-\u003ebar() ?? \"null\") \u003c\u003c std::endl; // output \"null\"\n```\n\t\nBuild \u0026 Usage\n------------\n\n```shell\ng++ -std=c++14 sharpener.cpp -o sharpener\ncat examples/example.cpp | ./sharpener | g++ -xc++ -std=c++14 -o example -\n./example\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarnyser%2Fcpp-sharpener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarnyser%2Fcpp-sharpener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarnyser%2Fcpp-sharpener/lists"}