← All projects
Project record1 mention
Originally shared on Hacker News

clj-multimatch

This Clojure library experiments with exhaustive tagged-union support built on Clojure's defmulti, exploring whether a pattern-matching form could generate the defmethods instead.

Last shared
01 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. clj-multimatch

    This Clojure library experiments with exhaustive tagged-union support built on Clojure's defmulti, exploring whether a pattern-matching form could generate the defmethods instead.

    Posted by @escherize · Original source ↗

    Source text · @escherize · · Source ↗

    Experimenting with exhaustive tagged-union support based on Clojure's defmulti. I think it might be better to go the other way, and have a pattern-matchey form generate the defmethods instead, but I need to gain tacit knowledge about it first. https://github.com/escherize/clj-multimatch