{"id":15981452,"url":"https://github.com/boxed/defk","last_synced_at":"2025-03-21T06:24:17.194Z","repository":{"id":140163747,"uuid":"44066264","full_name":"boxed/defk","owner":"boxed","description":"Compact keyword arguments for clojure","archived":false,"fork":false,"pushed_at":"2015-10-13T19:47:31.000Z","size":132,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-26T03:21:13.961Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boxed.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":"2015-10-11T19:27:07.000Z","updated_at":"2016-12-19T03:22:57.000Z","dependencies_parsed_at":"2023-03-13T12:36:42.010Z","dependency_job_id":null,"html_url":"https://github.com/boxed/defk","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/boxed%2Fdefk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxed%2Fdefk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxed%2Fdefk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxed%2Fdefk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boxed","download_url":"https://codeload.github.com/boxed/defk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244747305,"owners_count":20503357,"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-08T00:44:11.702Z","updated_at":"2025-03-21T06:24:17.175Z","avatar_url":"https://github.com/boxed.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/boxed/defk.svg)](https://travis-ci.org/boxed/defk)\n\n# defk\n\nA Clojure library designed to make keyword arguments not just easier but so much easier in fact that you\nmight just never use anything else again.\n\n## Usage\n\nInstead of using `defn` to define your function, use `defk`. Now anyone who calls your function gets keyword\nargument semantics automatically. An example is easier:\n\n```clojure\n(defk foo [a b]\n  (- a b))\n\n(let [a 1, b 2]\n  (foo b a)) ; \u003c- returns 1 - 2, NOT 2 - 1. How? Because the NAME a and\n             ; b are used, not the positions of those variables at the call site\n```\n\nYou can of course also pass in the value of variables with other names or literals:\n\n```clojure\n(let [c 2]\n  (foo a=1 b=c))\n\n(foo a=(+ 1 2 3) b=2)\n```\n\nThe underlying function can be called directly like so:\n\n```clojure\n(foo-raw {:a 1, :b 2})\n```\n\n## License\n\nCopyright © 2015 Anders Hovmöller\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboxed%2Fdefk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboxed%2Fdefk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboxed%2Fdefk/lists"}