exercism / elixir

Exercism exercises in Elixir.
https://exercism.org/tracks/elixir
MIT License
616 stars 399 forks source link

[log-level] Misused trailing question marks #1323

Closed saantonandre closed 1 year ago

saantonandre commented 1 year ago

The "Log Level" functions have a parameter called legacy? used to indicate a boolean value, this may be incorrect because the convention applies to functions that return a boolean, other than that it just creates more confusion since naming convention haven't yet been covered (related issue https://github.com/exercism/elixir/issues/1283)

angelikatyborska commented 1 year ago

Hi! Using the same convention (trailing question mark) for variables as for function names is perfectly ordinary in Elixir. Here's a few examples from the Elixir language repository:

I'd rather add a mention about this in the introductions than rename the variables - people need to be ready for this pattern 🙂 I should have time to work on https://github.com/exercism/elixir/issues/1283 soon