Procedural Programming
Procedural programming is a programming paradigm, derived from imperative programming, based on the concept of the procedure call. This term is sometimes compared and contrasted with Functional Programming.
Procedures (a type of routine or subroutine) simply contain a series of computational steps to be carried out. Any given procedure might be called at any point during a program's execution, including by other procedures or itself.
Procedural functions are integrated into Mathics3 symbolic programming environment.
- Abort — generate an abort
- Break — exit a 'For', 'While', or 'Do' loop
- Catch — handle an exception raised by a 'Throw'
- CheckAbort — catch an Abort[] exception
- CompoundExpression — execute expressions in sequence
- Continue — continue with the next iteration in a 'For', 'While' or 'Do' loop
- Do — evaluate an expression looping over a variable
- For — a 'For' loop
- If — test if a condition is true, false, or of unknown truth value
- Interrupt — interrupt evaluation and return '$Aborted'
- Pause — pause for a number of seconds
- Return — return from a function
- Switch — switch based on a value, with patterns allowed
- Throw — throw an expression to be caught by a surrounding 'Catch'
- Which — test which of a sequence of conditions are true
- While — evaluate an expression while a criterion is true