Crafting Interpreters
- Now we’re at statements. Where an expression’s main job is to produce a value, a statement’s job is to produce an effect.
- An argument is an actual value you pass to a function when you call it. So a function call has an argument list. Sometimes you hear actual parameter used for these.
- A parameter is a variable that holds the value of the argument inside the body of the function. Thus, a function declaration has a parameter list. Others call these formal parameters or simply formals.