On Mar 13, 2021, at 06:26, Igor Silva <computador...@gmail.com> wrote:
Current behavior
--
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 elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/61ea5a90-6e3b-49a0-ad58-377959dd6aabn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/F40F773D-8636-4040-826A-D75EF9C35734%40binarynoggin.com.
As addendum to this:
`cond` is often treated as if it were slower than `case`, and
I've seen people try to rewrite readable `cond`-clauses to
harder-to-read `case`-clauses to reap extra performance benefits.
(I'll admit: In the past I've been guilty of doing this as well.)
Benchmarking will however show you that in many cases this does
not matter.
The BEAM compiler is clever enough to optimize repeated
conditionals also outside `case`-clauses.
~Marten/Qqwy
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/d6ede81a-c490-4892-bfb0-4e5fbe7435f5n%40googlegroups.com.