News for hackers. Stuff that matters.
Re:The Evil Within the Comparison Functions by dyarosla on Sunday February 18, 2018 @09:46PM (#16410394)
Moreover, you could also allow for something like passing a structure of parameters.

clamp({min:2, max:5, x:3})

^parameters can be rearranged as you see fit

There! Now the programmer can decide what’s the way they want to call the function that makes the most sense to them.

Re:The Evil Within the Comparison Functions by dvlsg on Monday February 19, 2018 @03:24PM (#16415431)
If you use named arguments, can't you typically rearrange the order?

Don't get me wrong, I use destructured arguments in js and it works fine, but I thought named arguments in other languages solve that particular issue as well.