In the linked notebook http://nbviewer.jupyter.org/url/norvig.com/ipython/Countdown... when he says
>because there are 2 ways to make 27 with the numbers (10, 9, 8), namely, ((10+9)+8) and (10+(9+8))
why not also (10+9+8)?
>because there are 2 ways to make 27 with the numbers (10, 9, 8), namely, ((10+9)+8) and (10+(9+8))
why not also (10+9+8)?
If you don't write it so explicitly, a compiler will do it for you anyway.
(Of course, in either language you end up with two 2-operand ADD instructions in the object code. Nothing has hardware for arbitrary n-ary adds!)