The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

johnkorz (4) [Avatar] Offline
#1
In chapter 3 in section 3.4.1 Rest parameters. On page 54 right under listing 3.7 it says:
By prefixing the last-named argument of a function with ellipsis (..), we turn it into an array called the rest parameters, ...


On the previous page in the previous section. They define the differences between parameters and arguments. To my understanding, the above snippet contradicts their own definition of what an argument is. Am I just confused or is it in fact an error in the print? Not only that, they're called rest parameters.
Josip Maras (30) [Avatar] Offline
#2
Hi John,

You are absolutely correct - this is an error. The sentence should be: By prefixing the last-named parameter of a function with ellipsis.

We'll fix it in the next iteration.

Thank you,

Josip