Add a variant of slot to ignore child output #642
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The discussion of #636 mentioned the slight inconvenience of replacing
const Nothing
when child output messages need to be ignored. I had several of these in one of the projects I'm testing against next-6.How about adding a variant of
slot
which ignores outputs? It ccould also be used in theVoid
case, slightly simplifying things there, too. Here's an implementation, but I'm not sure about the nameslot_
; I wanted to avoidslot'
since that meant something different up to version 4.I realise this makes use of the fact that the
Maybe
is still there in the underlying implementation, and you may have been intending to remove that sometime in the future, so feel free to ignore this PR if there is a better direction to go!