Hacker News new | ask | show | jobs
by zzo38computer 767 days ago
Using goto instead isn't a problem, but knowing not to use break/continue inside of such blocks is something that you will have to be aware of.

I had written a immediate mode UI out of macros, and this reminded me of that although in my case it is not a problem, although some blocks are ones that you can use "break". For example, you can use "break" to exit out of a win_form block ("goto" also works), while a win_command block does not capture "break" so using break (or goto) inside of a win_command block will break out of whatever block the win_command is in (probably a win_form block; for example, this would commonly be used in the case of a "Cancel" button).