clojure/core.match
View on GitHub ↗ ★ 1,220 Clojure
An optimized pattern matching library for Clojure
26 mentions on Hacker News by 25 people: 1 story, 25 comments · first 2012-02-03 · latest 2026-04-30
20082026
-
…atoms rather than a predefined type), and I assume many lisps adopt similar patterns as well [1] https://github.com/clojure/core.match
comment by shirogane86x · 2026-04-30 · in Functional programmers need to take a look at Zig -
…code, rather than treating it like a cond statement (more info on the match algorithm here: https://github.com/clojure/core.match/wiki/Understanding-the... ). However, when using macros there’s always some trade-offs — for example, you…
comment by socksy · 2024-12-14 · in Idiomatic Errors in Clojure -
…"do-thing failed: %s" msg)} [{:ok true, :value value}] (continue-computation-with value))) meh [1]: https://github.com/clojure/core.match/wiki/Overview
comment by MathMonkeyMan · 2024-12-14 · in Idiomatic Errors in Clojure -
IIRC luc maranget's paper was also a basis to clojure/script core.match ps: checked https://github.com/clojure/core.match/wiki/References
comment by agumonkey · 2024-02-03 · in Compiling Pattern Matching -
▲ 2
Core.matchstory by tosh · 2022-08-01 · 0 comments
-
You can use this library to get pattern matching in Clojure: https://github.com/clojure/core.match/wiki/Overview
comment by jrvarela56 · 2022-04-27 · in Tutorial Series to learn Common Lisp quickly -
I assume you mean something like clojure.core.match https://github.com/clojure/core.match ? It is available, but not used that often.
comment by nlitened · 2021-09-26 · in My Janet Story -
Why not just use core.match? https://github.com/clojure/core.match
comment by OliverM · 2021-07-17 · in Elixir protocols vs. Clojure multimethods -
…in case the conversation inevitably turns to pattern-matched function definition in Elixir. :) https://github.com/clojure/core.match -- pattern matching as a library https://github.com/killme2008/defun -- using core.match to implement…
comment by tekacs · 2021-07-17 · in Elixir protocols vs. Clojure multimethods -
…has something like this in clojure.core.match - with a good bibliography by the end of the page. https://github.com/clojure/core.match/wiki/Overview
comment by kimi · 2020-08-31 · in Converting Boolean-Logic Decision Trees to Finite State Machines -
…so I can't say if clojure's implementation is a complete match in terms of functionality. [0] https://github.com/clojure/core.match
comment by joncampbelldev · 2016-12-31 · in Why Clojure? (2010) -
A few good examples in Clojure would be: core.async https://github.com/clojure/core.async core.match https://github.com/clojure/core.match Compojure https://github.com/weavejester/compojure Midje https://github.com/marick/Midje Korma…
comment by yogthos · 2016-12-17 · in The Idea of Lisp -
Clojure has a pattern matching library https://github.com/clojure/core.match . And I think clojure is the most widely used Lisp dialect now.
comment by youjiuzhifeng · 2016-07-18 · in Lisp: it's not about macros, it's about READ (2012) -
…and pattern matching in Clojure. core.logic https://github.com/clojure/core.logic core.match https://github.com/clojure/core.match
comment by mhluongo · 2016-05-23 · in Clojure.spec – Rationale and Overview -
…) 3. Clojure core.logic ( https://github.com/clojure/core.logic ) and core.match ( https://github.com/clojure/core.match ) 4. Yedalog: Exploring Knowledge at Scale ( http://research.google.com/pubs/pub43462.html ,…
comment by espeed · 2015-12-27 · in Handbook of Constraint Programming (2006) [pdf] -
…a regular frustration. That aside, clojure.core.match is implemented pretty much as you describe: https://github.com/clojure/core.match/wiki/Extending-match-f... I too was a bit confused about what the article was getting at.
comment by thom · 2015-03-28 · in Not everything is an expression -
…a lot of common FP idioms reasonably well. It's not pretty, but Clojure generally isn't. [1] https://github.com/clojure/core.match [2] https://github.com/lazerwalker/clojurescript-koans/blob/mast...
comment by jarcane · 2015-01-01 · in F# 2014 – A Retrospective and Call to Action -
For Clojure there is core.match [1]. [1] https://github.com/clojure/core.match
comment by pka · 2014-06-21 · in Egison: A Lisp Written in Haskell with Advanced Pattern Matching -
…datastructure but it compiles down to inline array access. Controlling binding or control flow eg https://github.com/clojure/core.match adds a pattern matching construct similar to those found in eg haskell or ocaml. Rewriting code eg the…
comment by jamii · 2013-10-28 · in Lisp for C++ programmers -
Not trying to sell you anything, just trying to help you find some things you've been missing: a) https://github.com/clojure/core.match b1) https://github.com/clojure/core.typed b2) I agree that Clojure's facilities for mixins is…
comment by brandonbloom · 2013-09-05 · in Effective Scala -
…as libraries. Not to say Scala probably isn't great too, but I haven't ever really used it. [1] https://github.com/clojure/core.match [2] https://github.com/clojure/core.typed
comment by bdisraeli · 2013-09-05 · in Effective Scala -
…you can pattern match on the result of a select (alt!) with core.match to get Erlang style matching http://github.com/clojure/core.match :) All this from libraries
comment by swannodette · 2013-06-28 · in Clojure core.async Channels -
How does this compare to https://github.com/clojure/core.match ? He mentions that core.match is better at efficiently compiling complicated patterns, but little else is said as to exactly why strucjure was made rather than just using…
comment by codewright · 2012-12-11 · in Show HN: Clojure DSL for pattern-matching, parsing and generic programming -
…( https://github.com/clojure/core.logic ) to implement a type checker as well as used core.match ( https://github.com/clojure/core.match ) for pattern matching in his compiler projects. As these tools mature - I think over time Clojure…
comment by swannodette · 2012-02-27 · in LLVM Clojure Bindings -
…with macros comes a lot of power. Clojure has a full powered pattern matching library. See this: https://github.com/clojure/core.match
comment by nickik · 2012-02-03 · in Modern Language Wishlist