Show HN: Lambda Zero – A minimalist pure lazy functional programming language
github.com1 pointsby clark8000 comments
def getNaturalName(tag, globals)
if globals.lookup("0") is Just(Global(_, _, term))
if term is Numeral(_, type, _)
return Just(Name(getTermTag(type)))
error showSyntaxError("0 must be a numeral to use numerals", tag)
return Void
Though this ultimate conditional syntax is more general because lambda zero only allows one destructuring per conditional to simplify parsing.
Note: There have been some minor changes to the language since this was made.