JuliaDiff / JuliaDiff/AbstractDifferentiation.jl

Function as first argument?

Open
#33 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

design
Dominant language
Julia
Stars
138
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Is there a specific reason for making the function f the second argument? It seems a bit unfortunate that this makes it impossible to use the do syntax which one could use if f would be the first argument such as in ForwardDiff or Zygote (as suggested also by the Julia style guide).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the issue discussion and inspect the package's function signatures and related tests to identify which APIs use the current argument order. Determine whether changing the order is intended and how compatibility would be handled; done means the proposed ordering supports Julia's do syntax without leaving affected callers or tests unresolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
backend-api-design
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 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.