First Procedure
Write your first Technique program
The simplest Technique is a single step:
1. Say hello to everyone.
We can embellish this with further text content. Wrapping on to a second line is fine.
1. Attempt to say hello to everyone in the room and
totally fail to get on with any of them.
Of course now we need to do something about the situation that this first step has created:
1. Attempt to say hello to everyone in the room and
totally fail to get on with any of them.
2. Offer to make tea.
Now we're getting somewhere!
A number of steps listed by themselves are perfectly valid Technique. Really! But sometimes we want to refer to these steps from elsewhere, or add a title, description, or other details. If we add a name to the document as a label this becomes a procedure:
greeting :
1. Attempt to say hello to everyone in the room and
totally fail to get on with any of them.
2. Offer to make tea.
The procedure declaration is an identifier and a colon. Later on we'll learn
about adding a signature to optionally define any inputs the procedure
requires and the type of whatever result it provides, but a name and : is
sufficient to declare a procedure.