Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Clojure's cond-> #330

Open
yyoncho opened this issue Feb 9, 2020 · 2 comments
Open

[Feature request] Clojure's cond-> #330

yyoncho opened this issue Feb 9, 2020 · 2 comments
Labels
enhancement Suggestion to improve or extend existing behavior

Comments

@yyoncho
Copy link
Contributor

yyoncho commented Feb 9, 2020

Example from the clojure docs

(cond-> 1          ; we start with 1
    true inc       ; the condition is true so (inc 1) => 2
    false (* 42)   ; the condition is false so the operation is skipped
    (= 2 2) (* 3)) ; (= 2 2) is true so (* 2 3) => 6 
@Fuco1 Fuco1 added the enhancement Suggestion to improve or extend existing behavior label Feb 9, 2020
@kinderferraz
Copy link

Hi

Is it still open for contribution?
I've spent the last few days implementing this macro as an exercise in emacs-lisp, and I'm finally happy with the solution.
I'd like to submit my code for discussion, as a contribution.
However, it would be my first time making a PR, so some guidance is appreciated.

@magnars
Copy link
Owner

magnars commented Dec 6, 2020

Hi @kinderferraz . Yes, cond-> and cond->> would be welcome additions. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Suggestion to improve or extend existing behavior
Projects
None yet
Development

No branches or pull requests

4 participants