5 ms·
The conditional threading macros are nice. I've been using them from clojure.core.incubator for a while as -?> and -?>>. Anyone know why the name change?
by pbiggar 14y ago
The conditional threading macros are nice. I've been using them from clojure.core.incubator for a while as -?> and -?>>. Anyone know why the name change?
- cgrand-net 14y ago? in Clojure hints to predicates and boolean contexts while -?> just checks for nil.
- graue 14y agoLooks like the equivalents of `-?>` and `-?>>` are now `some->` and `some->>`, is that right? Perhaps the name change is meant to avoid confusion now that there are multiple variants, i.e. also `cond->` and `cond->>`, which are different. It also occurs to me that threading through `some->` and `some->>` is kind of like doing computations in the Maybe monad in Haskell.
- aaroniba 14y agoI've been using Swiss Arrows. https://github.com/rplevy/swiss-arrows https://github.com/rplevy/swiss-arrows