clamp function in base

Sven Panne svenpanne at gmail.com
Sat Aug 15 09:49:36 UTC 2020


Am Sa., 15. Aug. 2020 um 11:28 Uhr schrieb Lennart Augustsson <
lennart at augustsson.net>:

> I would pick the name clamp, it is quite common.
>

I would go even further, it is *the* canonical name I would google first,
see e.g.

https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/clamp.xhtml
https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-clamp
https://developer.download.nvidia.com/cg/clamp.html

No need for creative bikeshedding here when there is already a standard
name.

  And I have often wished for this to be in base.
>

+1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20200815/600faddc/attachment.html>


More information about the Libraries mailing list