Skip to content

Review example 5 #128

@grahamison

Description

@grahamison

Example 5 uses message() to demonstrate the side-effect of printing. message is intended for condition signalling - diagnostic messages about code behaviour, so I think print() would be more normal if we want to teach about writing a function for the side effect of printing.

Also, else might be better than else if for the second case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions