Empirical Study On How C Devs Use Goto In Practice Says “Not Harmful”

Edsger Dijkstra famously opined in 1968 on the danger of GOTO statements. Mei Nagappan writes with a mellower view, nearly 50 years later:

By qualitatively and quantitatively analyzing a statistically valid random sample from almost 2 million C files and 11K+ projects, we find that developers limit themselves to using goto appropriately in most cases, and not in an unrestricted manner like Dijkstra feared, thus suggesting that goto does not appear to be harmful in practice.

(Here’s the preprint (PDF) linked from above abstract.)

Empirical Study On How C Devs Use Goto In Practice Says “Not Harmful” was originally published on realcoders.org

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s