WingNews logo WingNews
top | new | best | ask | show | jobs
top | item 38408850

(no title)

bostonvaulter2 | 2 years ago

Since Elixir 1.6 it is possible to create custom guards with `defguard`: https://hexdocs.pm/elixir/Kernel.html#defguard/1

discuss

order

elbasti|2 years ago

It's true that you can create custom guards, but they are still very limited, and they can only be made of a small list of allowed expressions [0].

[0]: https://hexdocs.pm/elixir/1.6.6/guards.html#list-of-allowed-...

powered by hn/api // news.ycombinator.com