Show a warning for out-of-range arguments to functions
Open
error-message
- Dominant language
- Haskell
- Stars
- 1.3k
- Forks
- 201
- PR merge metrics
- No merged PRs in 30d
Description
There's been some confusion about functions that expect arguments in a certain range: for example, `RGB` expects its arguments to be between 0 and 1, but some users are passing arguments between 0 and 255 instead. It would be an improvement to show a warning when arguments are out of range. The warning should only be displayed once for each source location to avoid spamming the console.
Contributor guide
Assessment
This issue has not been assessed yet.