Skip to content

Semantic inconsistencies between listen and emit tasks #917

Closed
@cdavernas

Description

@cdavernas

What seems off:

The listen task allows for user to configure events to listen to in the following way:

listen:
  to:
    one:
      with: {}

Whereas the emit task does not define the with keyword:

emit:
  event: {}

What you expected to be:

The emit task to define a with keyword, use to define event properties:

emit:
  event:
    with: {}

This would allow for potential future properties such as format, and would make it more fluent, ubiquitous and consistent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: specChanges in the Specificationchange: breakingA breaking change that will impact in a major version change.change: documentationImprovements or additions to documentation. It won't impact a version change.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions