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

Field types refinement #28

Open
holydrinker opened this issue Jun 25, 2020 · 0 comments
Open

Field types refinement #28

holydrinker opened this issue Jun 25, 2020 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@holydrinker
Copy link
Owner

holydrinker commented Jun 25, 2020

Problem Statement

I always have different operations on different ChromoField(name: String, dataType: DataType, rules: List[Rule]) based on their dataType value.
This brings me to pattern match on fields every time I have a function like f(field: ChromoField) just to be sure I'm working on a field typed as I expect.

Solution

I would be nice to find a way to pass no more ChromoField, but passing something like StringTyped ChromField or Int Typed ChromoField to reduce the verbosity of code and to gain type safety in codebase functions.

References

https://github.com/fthomas/refined

@holydrinker holydrinker added this to the backlog milestone Jun 25, 2020
@holydrinker holydrinker added the enhancement New feature or request label Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant