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 <javascript:> > > On Oct 17, 2019, at 16:12, Joel Wietelmann <jo...@revelry.co <javascript:>> > 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 <javascript:>. > 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. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/f9841970-bdef-4e67-b088-e680d2ae850c%40googlegroups.com.