JuliaDiff / JuliaDiff/BlueStyle
How to wrap chained short-circuiting logic operations?
Open
@omus is already working on this.
Since Feb 8, 2021.
- Dominant language
- No language data
- Stars
- 519
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
If we have code the goes over the line limit, like
if primal_name isa Symbol || Meta.isexpr(primal_name, :(.)) || Meta.isexpr(primal_name, :curly)
# do stuff
end
How should that be wrapped?
I think our preference would be for something like this
if (
primal_name isa Symbol ||
Meta.isexpr(primal_name, :(.)) ||
Meta.isexpr(primal_name, :curly)
)
# do stuff
end
does that seem right?
Contributor guide
No contributing guide indexed for this repository
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.
Assessment
This issue has not been assessed yet.