Remix.run Logo
morcus 7 hours ago

Wow, I had no idea JavaScript has labeled break! Thanks for the comment.

jacquesm 3 hours ago | parent [-]

It's a terrible feature, really. If you need a labeled break what you really need is more decomposition. I'm pretty sure that Dijkstra would have written a nice article about it, alas, he is no longer with us.

dwattttt 25 minutes ago | parent [-]

It depends on how big or trivial the loops you need are. If they're only 3 or 4 lines, extracting their body into a function doesn't improve anything.