~/talk

Pattern Matching in Clojure

Talkat Clojure/West 2015 · 2015-04-20..04-22· [functional-programming]
links:none on file
slides:none on file

History links Prolog unification and Erlang one-way matching to Clojure macros; practical claim is that core.match plus the defun wrapper defun give concise pattern-dispatch and make recursion readable. Examples include replacing nested conditionals, expressing zipmap as pattern cases, and using guards for predicates. Limitations: guards can’t easily reference multiple arguments, patterns are evaluated in order, ClojureScript lacks defun support, and macros trade some runtime speed for developer clarity. Core.logic offers true unification for two-way matching.

AI-written summary · about

  1. 0:00Introduction
  2. 0:20Agenda
  3. 0:47Presentation Overview
  4. 1:22History of Pattern Matching
  5. 2:47Unification
  6. 6:15Binding and Unbound
  7. 7:15Pattern Matching in Erlang
  8. 15:26Macros
  9. 16:32CoreMatch
  10. 17:59CoreMatch Example
  11. 21:30Let Things Crash
  12. 23:29Closure Script Support
  13. 28:44Pattern Matching in Practice
  14. 30:38Guard Expressions
  15. 32:12Best Practices
  16. 33:52Recursive
  17. 38:00Conclusion
  18. 38:49Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.