Michael Fogus 5/19/2025

Arities as pseudo-protocol

Read Original

The article analyzes the design choice in Clojure's core.async Flow library to use step functions with specific arities instead of a formal protocol. It discusses the benefits of this 'arity pseudo-protocol' approach, including fn-punning, hot reloading, and composition, comparing it to the conventional protocol-based implementation for defining process life-cycle behaviors.

Arities as pseudo-protocol

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week