Also, I would be happy to work on that feature and open a PR if you decide to go ahead with that.
Best, Kelvin Stinghen kelvin.sting...@me.com <mailto:kelvin.sting...@me.com> > On Oct 17, 2019, at 16:25, Joel Wietelmann <j...@revelry.co > <mailto:j...@revelry.co>> wrote: > > José: I like the `<-` option. That `with` expression is alright until you > want an `else` and then you're in awkward territory again. > > On Thursday, October 17, 2019 at 3:20:22 PM UTC-4, Kelvin Raffael Stinghen > wrote: > Just mentioning I really like the idea of allowing the use of `<-` on `if`s. > So 👍 from me > > Best, > Kelvin Stinghen > kelvin....@me.com <> > >> On Oct 17, 2019, at 16:12, Joel Wietelmann <jo...@revelry.co <>> wrote: >> >> You raise a good point. If I could write this without worrying about >> NoMatchErrors, that would solve all my complaints: >> if %{bar: "baz"} = foo, do: "yes" >> But I thought changing the `if` statement might be a harder sell. >> >> On Thursday, October 17, 2019 at 3:07:48 PM UTC-4, Michael St Clair wrote: >> Is there a reason or limitation `if` couldn't be changed to handle this >> instead of throwing a NoMatchError? >> >> -- >> 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-l...@googlegroups.com <>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/elixir-lang-core/edae76f6-9c51-450b-9604-91fd0df1cc6c%40googlegroups.com >> >> <https://groups.google.com/d/msgid/elixir-lang-core/edae76f6-9c51-450b-9604-91fd0df1cc6c%40googlegroups.com?utm_medium=email&utm_source=footer>. > > > -- > 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+unsubscr...@googlegroups.com > <mailto:elixir-lang-core+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elixir-lang-core/f9841970-bdef-4e67-b088-e680d2ae850c%40googlegroups.com > > <https://groups.google.com/d/msgid/elixir-lang-core/f9841970-bdef-4e67-b088-e680d2ae850c%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/D02522FF-0D9F-41E4-9234-A138F6D7FF01%40gmail.com.