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.

fjanon (62) [Avatar] Offline

Not that I use it much, but while writing data generation code for testing I found the labelled break quite useful. I didn't see any mention of it in the book. Could you add it?

"We can label any statement with a name. Labelling a while loop lets any arbitrarily deep nested statement break out of or continue on from it:"


Mittie (397) [Avatar] Offline
6.4.1 Normal termination: return/break/continue
covers this to some extend but we kept the coverage short to not put too much emphasis on it.

Thanks a lot for posting