Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(dslx): pass Maybe[T] to Func.Apply #1382

Merged
merged 5 commits into from
Oct 25, 2023
Merged

Conversation

bassosimone
Copy link
Contributor

@bassosimone bassosimone commented Oct 25, 2023

This diff renames FuncAdapter to StageAdapter and incorporates
the *Maybe into the return value type signature.

By doing this, not only we need to write less verbose type signatures
but we also start moving towards changing the stage type.
We're about to depart from the model where a Func is just a
function with state by incorporating the *Maybe into the return
value. So, better to name this type Stage.
This change modifies the DSL such that stages take a Maybe input.

By doing that, we easily enable to write filtering stages that
collect information useful to fill the test keys.
@bassosimone bassosimone changed the title Issue/2545 small 5 refactor(dslx): pass Maybe[T] to Func.Apply Oct 25, 2023
@bassosimone bassosimone marked this pull request as ready for review October 25, 2023 09:01
@bassosimone bassosimone merged commit 227bea1 into master Oct 25, 2023
8 of 10 checks passed
@bassosimone bassosimone deleted the issue/2545-small-5 branch October 25, 2023 09:01
Murphy-OrangeMud pushed a commit to Murphy-OrangeMud/probe-cli that referenced this pull request Feb 13, 2024
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.

dslx: Func.Apply should take a Maybe[A] as input
1 participant