Top 1,000 Features Creators Resources Blog Explore Download
GitHub icon

Runtime Guards

< >
Example from Elixir:
def abs(number) when number > 0, do: number def abs(number), do: -number
Example from Haskell:
f x | x > 0 = 1 | otherwise = 0

Languages with Runtime Guards include Elixir, Haskell

Read more about Runtime Guards on the web: 1.

HTML of this page generated by Features.ts

View source

- Build the next great programming language About Acknowledgements Extensions Day 624 feedback@pldb.io