Impressed

Kagamin spam at here.lot
Sat Jul 28 09:55:31 PDT 2012


On Friday, 27 July 2012 at 00:57:15 UTC, bearophile wrote:
> Stuart:
>
>> Why does D have GOTO? I haven't used GOTO in over a decade, 
>> because it's truly evil.
>
> Gotos are not so evil. Just use them when they are useful and 
> they can't be replaced by structured programming. In D I create 
> finite state machines at compile-time that use gotos, they are 
> quick.

Do FSMs really need to be spaghetti monsters? I heard, gcc 
optimizer can tear functions into common pieces and them 
reassemble the functions back from these pieces, or simply inline 
them, won't you get the same result?


More information about the Digitalmars-d mailing list