Dave Malcolm wrote:I'm only relating what it says in the (very confusing then) book on P117 in the section on switch expressions.
So the -> can be used in ordinary switch statements then can it?
Dave Malcolm wrote:I repeat that if what you're both saying is true then the book is awful because this is supposed to prepare people for the exam.
Mikalai Zaikin wrote:A switch can be an expression or a statement (it can be decided by the compiler by looking if the case block returns anything)
Paul Clapham wrote:a boolean
Put the moon back where you found it! We need it for tides and poetry and stuff. Like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|