Skip to content

Review best practice advice on side-effects #103

@grahamison

Description

@grahamison

The note says "It’s best practice for your function to either return an object or have a side-effect, but not both". Is this always true? E.g. you might want to return an object and display something (e.g. print a summary, display a plot, print a message).

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