This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Repository navigation
Explore making state part of the find data - #25691
Closed
JeremyKuhne wants to merge 1 commit into
Closed
JeremyKuhne wants to merge 1 commit into
JeremyKuhne wants to merge 1 commit into
Conversation
stephentoub
reviewed
Dec 5, 2017
| /// Interface for filtering out find results. | ||
| /// </summary> | ||
| internal delegate bool FindPredicate<TState>(ref RawFindData findData, TState state); | ||
| internal delegate bool FindPredicate<TState>(ref RawFindData<TState> findData); |
Member
There was a problem hiding this comment.
If both the delegate types have the same signature now, how about just defining a delegate:
internal delegate TResult FindFunc<TState, TResult>(ref RawFindData<TState> findData);and using the same delegate for both?
stephentoub
reviewed
Dec 5, 2017
| /// Delegate for transforming raw find data into a result. | ||
| /// </summary> | ||
| internal delegate T FindTransform<T>(ref RawFindData findData); | ||
| internal delegate TResult FindTransform<TResult, TState>(ref RawFindData<TState> findData); |
Member
There was a problem hiding this comment.
Generally the result type comes last. But see my earlier comment about unifying the delegates, anyway.
Member
|
@JeremyKuhne looks like stale PR. Any plans to push it forward? |
Member
|
@JeremyKuhne ping? |
Member
Author
|
This is out of date. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Making the change to put state in RawFindData as suggested by @svick on dotnet/designs#24 (comment). I think this way is better- note that I haven't added state to the transform delegate before, but it is intended to have it per the spec.
@svick, @danmosemsft, @terrajobst