Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Dec 18, 2023

overwrite is equivalent to mapWriter without output type change. It allows default definitions of all other methods. It has a default definition in terms of pass and listen.

Normally I would just make mapWriter a method, but unfortunately that would clash with the exports of CPS, Lazy, and Strict. Currently the method order of overwrite is sane for the (,) instance but swapped compared to mapWriter. Would it make more sense to keep the API exactly the same?

Is the benefit worth the API maintenance cost and learning burden?

`overwrite` is equivalent to `mapWriter` without output type change. It allows
default definitions of all other methods. It has a default definition in terms
of `pass` and `listen`.
@ghost ghost force-pushed the mapWriter branch from 420d8fd to 2759a56 Compare December 20, 2023 14:29
@ghost
Copy link
Author

ghost commented Jan 2, 2024

I just noticed that this repo is completely inactive; closing pull request.

@ghost ghost closed this Jan 2, 2024
@sjshuck sjshuck mentioned this pull request Aug 18, 2025
@sjshuck sjshuck reopened this Sep 12, 2025
@sjshuck
Copy link
Collaborator

sjshuck commented Sep 12, 2025

It looks like a non-breaking change, but I think this won't be merged for 2.3.2. I would want others to weigh in on it first. Thanks for the contribution.

@ghost ghost closed this by deleting the head repository Sep 16, 2025
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant