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.

貢獻者指南