Skip to content

Move some of Sink/Source member functions to extensions #335

@fzhinkin

Description

@fzhinkin

Sink/Source interfaces declare several member functions that could be easily implemented as extension functions. For example, Source::peek, Source::transferTo, and Sink::transferFrom.

Having such functions implemented as member functions does not provide any obvious benefits but requires us to write similar implementations several times. It would be nice to have a single implementation instead.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions