'goto', as an indicator of good language

AnimusPEXUS animuspexus at protonmail.com
Thu Sep 8 16:33:58 UTC 2022


There was a discussion sometime ago in a Russian Dlang Telegram 
chat about 'goto' keyword. And there was some empiric theory, 
stating 'all good languages support goto statement'. Nor Rust, 
nor Carbon, nor Zig will never going to overcome D or C++ because 
of this. Language should give possibilities, not take them away. 
And in some cases, goto able to make code more readable, more 
sane and more understandable. Also, goto is much safer in 
language with GC.

[corresponding section in 
wikipedia](https://en.wikipedia.org/wiki/Goto#Criticism)



More information about the Digitalmars-d mailing list