JuliaWeb / JuliaWeb/GitHub.jl

@api_default macro removes line info

Open
#151 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
175
Forks
62
PR merge metrics
No merged PRs in 30d

Description

```
julia> m = @which GitHub.pull_request(Repo("JuliaLang/julia"), 33779)
pull_request(repo, pr) in GitHub
```

In general, the '@api_default` is pretty annoying. It needs to be put on all methods and I don't see how it is better than just using a global or a keyword arg with a default value or something more normal.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the @api_default macro and reproducing the @which GitHub.pull_request(...) example shown in the issue. Trace how the macro affects source locations; done means the example preserves useful line information and the macro's behavior is covered by a clear resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.