Just another site

Thought this was cool: Why don’t “advanced” programming languages have GoTo in them?

leave a comment »

In Programming Languages: Franck Dernoncourt voted up an answer.

Many more recent languages have removed “goto” because general goto makes certain compiler optimizations harder, by creating “irreducible flow graphs” (search on the above phrase for details or see ACM link below). Goto is typically replaced by more advanced control flow constructs like exceptions or call-cc. These are easier for users to use as well as compilers to digest, so goto has gone away.
ACM link to Characterizations of Reducible Flow Graphs

See question on Quora

from Franck Dernoncourt on Quora:


Written by cwyalpha

十二月 28, 2012 在 3:02 下午

发表在 Uncategorized


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

You are commenting using your account. Log Out /  更改 )

Google+ photo

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

Twitter picture

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

Facebook photo

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


Connecting to %s

%d 博主赞过: