The whole point of `Kernel.match?/2` is to convert the NoMatchError into a simple true/false. Sure, maybe it takes a little bit of getting used to, but you're overstating your case. I predict that with more Elixir experience, you'll see the function used more and will gain familiarity with it.
Create and use your helper macro in your codebase if you want, but I don't want to see this extra complexity in the core language/libraries. -- Greg Vaughn > On Oct 17, 2019, at 2:04 PM, Joel Wietelmann <[email protected]> wrote: > > There's also `Kernel.match?/2`, which is awkward to use in an `if` statement > because it doesn't read like any pattern matching expression that an Elixir > developer has typically ever written -- 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/75F9AA2E-5B15-4A9B-8F53-733FA8C6E1C9%40gmail.com.
