JuliaPy / JuliaPy/PythonCall.jl

Why does the argument order of `pyconvert_add_rule` deviate from convention

未关闭
#363 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
question
主要语言
Julia
星标
1.1k
派生
86
平均合并
1 天 22 小时
30 天内合并 PR
3

描述

According to the [Julia Docs](https://docs.julialang.org/en/v1/manual/style-guide/#Write-functions-with-argument-ordering-similar-to-Julia-Base), function arguments should be placed first because "Putting a function argument first permits the use of [do](https://docs.julialang.org/en/v1/base/base/#do) blocks for passing multiline anonymous functions."

Is there a reason for not following this convention?
Would it be reasonable to support the conventional argument order in addition to the current argument order?
Can we switch fully to the conventional argument order and deprecate the current argument order / remove it in the next breaking release?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。