Re:Fluent Interfaces Are Bad for Maintainability
by iterati on Tuesday March 20, 2018 @11:39AM
(#16629501)
This is actually why I love working in Clojure. There are a number of threading macros to make this pipeline stuff work in different scenarios (put the return value in as the first, last, or variable argument; stop and return nil if you ever get a nil to prevent NPEs from happening downstream; only do this step is a condition is met). A simple example:
It's equivalent to something like this in Python:
[ Parent
| on HN ]
There are no comments on this comment yet.