I believe this sort of thing belongs in the realm of linters honestly, c.f.
Rubocop. But really good idea. Just my twopence.

On Jul 12, 2016 1:17 AM, "Henrik Nyh" <[email protected]> wrote:

> I ask because the ones I can think of (unused variables, assignment in
> conditional) are such that if you heed the warning, the behaviour of your
> code won't change. So there's never (?) a case where you can't just do what
> it says to get rid of it, without breaking your code.
>
> Whereas heeding this warning would break any code with intended commas in
> that sigil, requiring it to be rewritten without the sigil. Though I guess
> that could be part of the message: "… If the commas are intended, use this
> other construct instead". (I don't like that idea, though.)
>
> Sent from my iPhone
>
> > On 12 Jul 2016, at 00:49, Onorio Catenacci <[email protected]> wrote:
> >
> > That is sort of the definition of "warning". If it were obviously wrong
> it would be a compiler error.
> >
> > Henrik N <[email protected]> wrote:
> >> Is there precedent for warnings in Elixir about things that could be a
> mistake but could also be a valid use case?
> >>
> >> --
> >> You received this message because you are subscribed to a topic in the
> Google Groups "elixir-lang-core" group.
> >> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/elixir-lang-core/tmAESH8Nhz8/unsubscribe
> .
> >> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> >> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-core/77dc7cd3-07b4-4ef1-8dfa-587587feb0ee%40googlegroups.com
> .
> >> For more options, visit https://groups.google.com/d/optout.
> >
> > --
> > You received this message because you are subscribed to a topic in the
> Google Groups "elixir-lang-core" group.
> > To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/elixir-lang-core/tmAESH8Nhz8/unsubscribe
> .
> > To unsubscribe from this group and all its topics, send an email to
> [email protected].
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-core/xmbipso4kehogg28mex2s1j3.1468280949540%40email.android.com
> .
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "elixir-lang-core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-core/9A59F3CC-4BA4-4A9D-80B4-9A1B62E6E72E%40nyh.se
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAA1-O0yTKzgCc8Ae7w6%3DAjiNV49ZBRZihpF4BiZtXCBK69rkmQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to