# clojure/core.match

An optimized pattern matching library for Clojure

Repository: https://github.com/clojure/core.match
Canonical: https://ross.abutalabs.com/products/corematch
Homepage: http://clojure.org
Language: Clojure
License: EPL-1.0
License Family: copyleft
Last push: 2025-12-30T19:06:21+00:00

## Health v2 (maintenance only)
Score: 59/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 59, release rhythm 35, longevity 100
- inputs: {"age_days": 5479, "days_push": 246, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1219, forks 63 (observed 2026-08-28T04:04:01.691207+00:00)

## What it is
An optimized pattern matching library for Clojure and ClojureScript, part of the official org.clojure ecosystem. It compiles match expressions into efficient decision trees supporting vector, map, and literal patterns.

## Use cases
- pattern match on data structures in clojure
- replace nested conditionals with match expressions
- destructure vectors and maps with match
- fizzbuzz style dispatch on multiple values
- pattern matching in clojurescript

## When to choose
- you need expressive, performant pattern matching in Clojure or ClojureScript
- you want a maintained library from the official clojure org
- your code is dominated by nested cond/case logic over data structures

## When to avoid
- you are not working in Clojure or ClojureScript
- your matching needs are trivial and covered by core case/cond
- you need pattern matching for a JVM language other than Clojure

## Facets
- artifact type: library
- maturity: stable
- function: parser, developer-tools
- domain: programming-languages, developer-tools
- platform: jvm, jvm-scripting, browser
- tags: pattern-matching, clojure, clojurescript, compiler-optimization, functional-programming

## Member repositories
- clojure/core.match (main) score 59

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:01.691207+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:16:12.788305+00:00, confidence not recorded.
  - readme: https://github.com/clojure/core.match (fetched 2026-08-28T04:04:01.691207+00:00, sha b6b1b3a100c0)
  - homepage: http://clojure.org (fetched 2026-08-29T12:24:30.407271+00:00, sha bcc8cd5ee288)
  - site_page: https://clojure.org/about/rationale (fetched 2026-08-29T12:24:30.416552+00:00, sha 964c733dd85e)
  - site_page: https://clojure.org/reference/documentation (fetched 2026-08-29T12:24:30.418491+00:00, sha cdde0d5257d4)
  - site_page: https://clojure.org/about/clojureclr (fetched 2026-08-29T12:24:30.422421+00:00, sha 04552e665d75)
  - site_page: https://clojure.org/releases/downloads (fetched 2026-08-29T12:24:30.420735+00:00, sha df8e7ac9f418)
- Data as of 2026-08-30T08:39:29.467469+00:00.
