exercism / exercism/elixir-analyzer

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

オープン
#447 コメント 2 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。