{"id":22769763,"url":"https://github.com/bfontaine/minimaliterals","last_synced_at":"2025-10-28T21:14:06.885Z","repository":{"id":14294358,"uuid":"17002788","full_name":"bfontaine/Minimaliterals","owner":"bfontaine","description":"Ruby-like %-literals in Clojure","archived":false,"fork":false,"pushed_at":"2014-02-23T19:53:28.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T23:43:41.285Z","etag":null,"topics":["clojure","library","macros"],"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/bfontaine.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":"2014-02-19T23:23:39.000Z","updated_at":"2017-06-30T15:39:20.000Z","dependencies_parsed_at":"2022-09-06T01:04:22.023Z","dependency_job_id":null,"html_url":"https://github.com/bfontaine/Minimaliterals","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2FMinimaliterals","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2FMinimaliterals/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2FMinimaliterals/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2FMinimaliterals/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bfontaine","download_url":"https://codeload.github.com/bfontaine/Minimaliterals/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246313151,"owners_count":20757440,"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":["clojure","library","macros"],"created_at":"2024-12-11T15:15:33.225Z","updated_at":"2025-10-28T21:14:06.827Z","avatar_url":"https://github.com/bfontaine.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# minimaliterals\n\n[![Build Status](https://travis-ci.org/bfontaine/Minimaliterals.png)](https://travis-ci.org/bfontaine/Minimaliterals)\n[![Coverage Status](https://coveralls.io/repos/bfontaine/Minimaliterals/badge.png)](https://coveralls.io/r/bfontaine/Minimaliterals)\n\n**minimaliterals** is an experimental library which brings Ruby-like\n[%-literals][1] to Clojure. This is only for fun with macros, use it at your\nown risk!\n\n[1]: https://en.wikibooks.org/wiki/Ruby_Programming/Syntax/Literals#The_.25_Notation\n\nThe table below summarizes the syntax:\n\n| Ruby          | Clojure        | Result           |\n|---------------|----------------|------------------|\n| `%w[foo bar]` | `(%w foo bar)` | `'(\"foo\" \"bar\")` |\n| `%q[foo bar]` | `(%q foo bar)` | `\"foo bar\"`      |\n| `%r[fo+ ?]`   | `(%r fo+ ?)`   | `#\"fo+ ?\"`       |\n| `%i[foo bar]` | `(%i foo bar)` | `'(:foo :bar)`   |\n\nDue to the use of `%`, using these macros in short-form anonymous functions\nwon’t work (e.g. `#(identity (%w a b c))` will throw an error at compile-time).\n\n## Usage\n\nAdd it as a dependency:\n\n```clj\n[minimaliterals \"0.1.0\"]\n```\n\nThen use it:\n\n```clj\n(ns your-namespace\n  ; ...\n  (:use minimaliterals.core))\n\n; ...\n\n(def names (%w henry james jayne))\n```\n\n## Caveats\n\nNo interpolation is done, this means that the following code:\n\n```clj\n(let [x \"yo\"]\n  (%w x y z))\n```\n\nwould give `'(\"x\" \"y\" \"z\")` and not `'(\"yo\" \"y\" \"z\")`.\n\n## License\n\nCopyright © 2014 Baptiste Fontaine\n\nDistributed under the Eclipse Public License either version 1.0 or any later\nversion.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfontaine%2Fminimaliterals","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbfontaine%2Fminimaliterals","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfontaine%2Fminimaliterals/lists"}