JuliaMath / JuliaMath/Interpolations.jl

Add non-parenthetical BSpline constructor?

Open
#401 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
575
Forks
117
PR merge metrics
No merged PRs in 30d

Description

This is mostly a matter of taste, but the current `BSpline` constructor has too damn many parentheses.

`interpolate(A, BSpline(Cubic(Line(OnGrid()))))` - heaven help you if you don't have bracket-matching turned on!

`∘(args...)` allows a more-legible syntax:

```
julia> Interpolations.BSpline(args...) = BSpline(∘(args...)())

julia> BSpline(Cubic, Line, OnGrid)
BSpline(Cubic(Line(OnGrid())))
```

If it's a good idea, I can put together a PR.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.