stagas/mono

Clamp values for range arguments

Open

#3 创建于 2023年2月5日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)TypeScript (0 fork)github user discovery
bugenhancementgood first issue

仓库指标

Star
 (9 star)
PR 合并指标
 (PR 指标待抓取)

描述

For arguments such as x[.1..4f], the range is currently only passed as a hint for the consumer (e.g to generate webaudio params, gui controls etc.), there is no runtime protection to clamp the value to that range. The implementation needs to insert clamp(x,min,max) at the top of the function's body for those locals to enforce the range at runtime.

贡献者指南