google / google/codeworld

Show a warning for out-of-range arguments to functions

Open
#1,454 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.