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

API: Pipeline.of* methods (and corresponding builder ctors) with direct class references instead of type hinting #18

Open
eledhwen opened this issue Mar 6, 2024 · 0 comments
Labels
enhancement New feature or request icebox

Comments

@eledhwen
Copy link
Collaborator

eledhwen commented Mar 6, 2024

Current implementation relies on type hinting for pipeline builder initialization:

  • Pipeline.ofPayload relies on the provided Initializer signature, if none is provided it requires manual type hinting
  • Pipeline.ofSimple requires manual type hinting

Type hinting is not intuitive (many devs don't even know it exists, and to their credit scenarios where they are relevant are few and far between) and is subject to type erasure.

We could probably upgrade this by requiring direct type references instead, which we could then eventually use for runtime type checks.

@eledhwen eledhwen added enhancement New feature or request icebox labels Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request icebox
Projects
None yet
Development

No branches or pull requests

1 participant