Skip to content

naming: success/failure vs success/error #80

@Andrei-Pozolotin

Description

@Andrei-Pozolotin
  1. it seems that success/failure:
    effect.on(
        success=lambda value: print("I like {} too!".format(value)),
        failure=lambda error: print("sorry, there was an error. {}".format(error))
    )
  1. reads better then success/error:
    effect.on(
        success=lambda result: print("I like {} too!".format(result)),
        error=lambda e: print("sorry, there was an error. {}".format(e))
    )

😄

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