Guards clauses are a key feature in Elixir. Researching how to make it easier for developers to define guards, has led me to two enhancement proposal. This is the first one, which will allow developers to write guards, guard-safe macros and regular expressions in a more natural and succinct way.
The following macro is allowed in guards:
is_kind(term, kind)determines if a giventermis of a certainkind.
as well as the following operators:
term is kindsdetermines iftermis each kind inkinds.