Runtime Guards is an actively used design pattern. Guards can easily be implemented using conditions (if !x: return;), but some languages include syntax and semantics specifically for guards.

?Years Old

Languages with Runtime Guards include haskell

Example from haskell:

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

Last updated August 9th, 2020

Edit Runtime Guards on GitHub