I agree with @Saša Jurić's approach. This (valid but possibly hazardous code), is exactly what linters are built for.
On Monday, August 22, 2016 at 10:03:36 PM UTC+2, Saša Jurić wrote: > > This sounds like something which could be discovered with dialyzer. Maybe > a rule in a linter (e.g. Credo) could also be helpful. > > > On Saturday, August 13, 2016 at 3:52:54 PM UTC+2, miwee wrote: >> >> I recently got bitten by this. I used True/False, thinking them as >> boolean values true/false. Got no warning, but code failed. Partly reason >> is that I was recently alternating between python and Elixir code base. >> Python uses True/False. May be a gentle reminder from elixir compiler, on >> usage of True/False could have saved me from this. >> >> thanks >> miwee >> > -- 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/f1c0b932-7331-4402-acb2-aec57ae7ce2f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
