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.
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.