Home   Manual   Type Index   Symbol Index   Topics Index

Branches

There are no builtin branch instructions in the Funky language.

The basic branch instructions of the standard library use polymorphic dispatch on the truth values std::true and std::false to implement std::if and std::unless.

More complex branches like std::cond or std::case use std::if to check their conditions.

std::case   multi-branch conditional
std::cond   a multiway conditional expression or statement
std::if   classic if; can be used as a function or a procedure
std::in_case   conditionally execute a function
std::unless   executes a function unless the condition is true