Arities as pseudo-protocol
Read OriginalThe 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.
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
No top articles yet