--
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/61c0d119.1c69fb81.af520.c181SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4LOyoAmXULJQo%2BYX4eFVJZJAoYtKHytoHujCS_kJ6AEuA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CACzMe7aXBL1jNM_aWmJJzYOjrK%3Dtf-4%2BLPLJLpccu_G4zr0cAg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/c1fea9e2-f47c-4236-812a-431bc7d76d62n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/61c11ffb.1c69fb81.9b607.f827SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4K9WRhyaGpXy8Ds%3DbEq%3DpapgF6w%2BRciB-PY6M6Xe5%2BoFQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CACzMe7bYaEzaeeGpiKfux7K%2BLGOGMQS5cdFejqq5%2BEPu056uWA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4LTqZ223yVFNgTVgm%3DS4OC0p7cTyxMUYysZnFvdnMfh%3Dg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAFXvW-66yKSPBxTC7b8paYOWEnD0DZDc65k-BUR4wX__XdV2%3Dg%40mail.gmail.com.
In the examples given I can't see how they are different from using reduce with a tuple as an accumulator, eg:```for i <- [1, 2, 3], reduce: {0, 0} do{doubled, sum} -> {i * 2, i + sum}end```
--
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/CAGnRm4LmhgA%3De9_vZ8_1eyv3gjsUsArYZH31388s-%3D%2BY-uUM5Q%40mail.gmail.com.
Does this break that? Would this (contrived) example be valid?:for reduce {%{start: count}, sum} = {%{start: 0}, 0}, count < 100, i <- [1, 2, 3] do{count + 1, i + sum}end
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4K9WRhyaGpXy8Ds%3DbEq%3DpapgF6w%2BRciB-PY6M6Xe5%2BoFQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/1990bd4f-ce14-43cb-958a-5e261a9a3d22n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CACzMe7aQ5h8UEsKtqW5_rNLQQqjzWt-t4oR_WW8-sRzT808O4w%40mail.gmail.com.
I really like this, and would be happy with it as is I have one thought though, with the way that we are already doing a bit of “magic” (I don’t mean that in a negative way) to map the “let” variable to the second element of the tuple, could we support multiple assignments without the tuple in the let? Something like this (hard to type code on the phone )for let x = 10, y = 12, foo <- list do{result, x, y}end
Sent via Superhuman iOS
--Hi everyone,This is the second proposal for-let. You can find it in a gist: https://gist.github.com/josevalim/fe6b0bcc728539a5adf9b2821bd4a0f5Please use the mailing list for comments and further discussion. Thanks for all the feedback so far!
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/CAGnRm4KHhMO3cFzf3L%3D7e1EJbC8hu5bLFUA%2BTRSkb9iDGozUSQ%40mail.gmail.com.
I also considered this and I think the "multiple lets" and "multiple reduces" could get confusing. Can I have both? Can I declare them anywhere? The answer is no. Given you can't combine them and only use them at the beginning, it feels like having only one is the more appropriate choice.
--
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-core+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4%2BmRv0%2BptoVoKSN11y_C%2B56QP1vKBqXVdDFvoZQpqh7qQ%40mail.gmail.com.