partial and comp verses anonymous functions (lambda)
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 20/100
- Issue type
- Documentation
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- clojure
- Domain
- documentation
Research direction
No files, tests, or entry points are named. First clarify whether this discussion should become documentation, and identify the intended location and examples for comparing partial, comp, and anonymous functions. Done would require an agreed scope and a concrete documentation change, but the issue currently provides neither.
Written by the indexing model from the issue text.
Description
partial vs lambas
lambdas are considered more idiomatic than partial and comp
reasons to prefer lambdas?
They are often shorter, and often produce nicer stacktraces
The behavior of comp and partial when used to create top level defs can be surprising when you redefine things
I believe rich has at least once said partial wouldn't be part of clojure.core if the function short hand syntax had existed first
I think nicer stacktraces is the "big reason" I was looking for. Thanks!
They are also easier to debug - if that’s your thing; I find cider’s debugger very useful
- Dominant language
- Makefile
- Stars
- 117
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from practicalli/clojure
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
practicalli/clojure#381 ·
-
Clojure on windows Open
Difficulty 1/5 Under an hour Newbie friendliness 75/100
practicalli/clojure#298 ·
-
video
practicalli/clojure#478 · 1 assignee ·
-
practicalli/clojure#477 · 1 assignee ·
-
practicalli/clojure#476 · 1 assignee ·
All issues in practicalli/clojure
Similar issues
-
sync-en
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
agilepathway/label-checker#640 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
BasedHardware/omi#15662 · 1 comment ·
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100