loading...

re: JavaScript Best Practices — Rest Operator VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Nice post, John, but sorry for being a bit pedantic -- this is syntax and the idea is best known as "rest parameters" (not to be confused with REST...
 

I think it's a great use of the rest syntax.

Anything is better than using arguments to get the arguments.

 

Not necessary in JS, but this is very common in functional programming languages where loops constructs don't exist but all recursive calls are TCO (tail-call optimized)

code of conduct - report abuse