I'm not convinced by this idea as well. Why should we have special
treatment for lesser/greater than zero, but not for an arbitrary number?
What if I want to allow float AND integer, with the proposed guards it is
not possible.

Tallak Tveide <[email protected]> schrieb am Mi., 22. Nov. 2017 um
07:20 Uhr:

> I am still not convinced. Elixir is not a statically typed language. The
> guard you mention does add some checking, and I wouldnt mind seeing it in
> Elixir code, but there are so many of these kinds of bugs that still remain
> ‘unsolved’. The tool to deal with these kinds of bugs are unit tests and
> dialyzer.
>
> --
> 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/e7227105-994d-4416-b829-17466b11da00%40googlegroups.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/CA%2BbCVsvgUSDHeMbaDYvR%2BoEENL3XGRx1HhdnbQkGs%2BQz1Zepbw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to