clj-commons / clj-commons/failjure

Feature Request: `f/attempt` with implicit `f/try*`

Open
#34 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Clojure
Stars
427
Forks
20
PR merge metrics
No merged PRs in 30d

Description

Think it would be handy to have a macro like `f/attempt` but wraps `val-or-failed` in an implicit `f/try*`.

Maybe something like `f/try`? or change `f/attempt`?:

```clj
(f/try
#(f/fail "I failed!: %s" (f/message %))
(throw (ex-info "I throw" {})))
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the existing f/attempt and val-or-failed behavior, then compare it with the proposed f/try* and f/try examples. The issue does not name files or tests, so locate the macro definitions and their tests before deciding whether this should be a new macro or a change to f/attempt. Done means the intended implicit f/try* behavior is defined and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.