Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

Clojure threading macros #29

Open
stephenmuss opened this issue Jul 16, 2016 · 3 comments
Open

Clojure threading macros #29

stephenmuss opened this issue Jul 16, 2016 · 3 comments

Comments

@stephenmuss
Copy link

stephenmuss commented Jul 16, 2016

Hi there,

Nice work bringing some of the great parts of Clojure to LFE.

I'm not sure whether it is even feasible but it would be great to see some of Clojure's threading macros introduced to this library. In particular the -> thread-first and ->> thread-last macros.

Another comparison would be Elixir's |> pipe operator.

@rvirding
Copy link

The macros you mentioned are/will be in the basic clj library. Isn't elixir's pipe macro equivalent to -> or ->>? Though to be honest I would have very little use of it as it is usually to simple for what I need as there is no handling of pattern matching. I generally find using let*, which can handle matching, to be more useful.

@stephenmuss
Copy link
Author

Elixir's pipe operator is indeed equivalent to ->. I thought it was worth mentioning given its relationship to Erlang.

@yurrriq
Copy link
Contributor

yurrriq commented Sep 13, 2016

I've added a few more of Clojure's threading macros too in lfe/lfe#267.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants