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

Use range types for some parameters? #77

Open
planetis-m opened this issue Jun 2, 2023 · 1 comment
Open

Use range types for some parameters? #77

planetis-m opened this issue Jun 2, 2023 · 1 comment

Comments

@planetis-m
Copy link
Owner

Such as imageRotate.degrees, imageColorContrast.contrast, imageColorBrightness.brightness, colorBrightness.factor, colorContrast.contrast, etc.
On the other hand https://status-im.github.io/nim-style-guide/language.range.html advises to avoid range types...

@xrfez
Copy link
Contributor

xrfez commented May 21, 2024

distinct range can work better maybe?. Less ergonomic but solves some of the linked issues.

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

No branches or pull requests

2 participants