PLDB
Languages Features Calendar About Lists Add Language
GitHub icon

Runtime Guards

Runtime Guards

Runtime Guards are a language feature.

Guards can easily be implemented using conditions (if !x: return;), but some languages include syntax and semantics specifically for guards.

Languages with Runtime Guards include Haskell

Example from Haskell:

f x | x > 0 = 1 | otherwise = 0

Article source

PLDB - Build the next great programming language. v5.0.0 - Acknowledgements · Email · GitHub