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

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes