Skip to content

Better explain how pure is different from side effect free #3

Open
@calvinmetcalf

Description

It took me a couple readings to realize pure no use of closures. Making it more explicit what the two things do would by helpful. My understanding:

  • side effect free: does not write to any variable outside the function and does not modify it's arguments if they are objects
  • pure: same as above but also does not read from any external variables besides it's arguments

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