News for hackers. Stuff that matters.
Re:N-Params vs. Single Param by the_other on Thursday April 17, 2025 @05:53PM (#43722639)
I’ve seen some evidence it hurts performance in JS, too. If you’re doing something “a lot”, like media qstreaming, or realtime updates, ordered params are likely faster.

I agree with others that the destructuring is a nice syntax to read and write. Yet, I have started to feel it’s an overused pattern, deployed by habit rather than consideration (in my code anyway). I can’t put my finger on why. It’s possibly a gut-feel that my functions would be better taking feeer arguments.

There are no comments on this comment yet.