3 ms·
and quickly become painful to write once you’re familiar with the function call JavaScript's more recent structuring/desctructuring arguments has made this pre
by mikeryan 6y ago
and quickly become painful to write once you’re familiar with the function call
JavaScript's more recent structuring/desctructuring arguments has made this pretty seamless as long as you name your variables well.
For the most part switching from ordered to named is just func(arg1, arg2, arg3) is just foo({arg1, arg2, arg3})
You may need to rename or pass in the params on the call but it's generally pretty nice. As an above comment says about Clojure - as soon as I need a third argument in a function I switch from ordered to named and its pretty painless.