RSSAmplifier

soc.me · Dec 10, 2022

Language Design: Drop `break` and `continue`

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

TL;DR: Optimize for the common case, not the exotic ones. First of all: The argument is not that break and continue in loops aren’t … useful convenient sometimes the best option … That’s not the argument being made. The argument that is being made is that break and continue are … … optimizing for an infrequent special case … Consider a codebase that contains 1000 loops. Out of those 1000, 900…

Read on /languages/drop-break-and-continue.html

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.