exercism / exercism/elixir-analyzer

Remote Control Car: Analyzer recommends a default argument for an arity zero function.

未关闭
#447 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Elixir
星标
33
派生
33
PR 合并指标
30 天内没有已合并 PR

描述

If I'm reading this correctly, the analysis recommends that I "Use a default argument for defining the function `new.` despite the instructions asking for an arity/0 function.

![Image](https://github.com/user-attachments/assets/9acd1d51-c41d-45e0-9da8-ad1fe2bc4bb2)
![Image](https://github.com/user-attachments/assets/d708eb8d-91e4-43c9-8360-3a555245a3c8)

Unless this is recommending a default argument for the arity/1 function, it conflicts with the instructions of the exercise to have a default argument for a function that should take zero arguments. Maybe I'm wrong, though?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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