4 ms·
Will there be gotos in Go 2? Asking for a friend.
by nickbauman 9y ago
Will there be gotos in Go 2? Asking for a friend.
- Siecje 9y agoThey are in Go 1 and Go 2 will be backward compatible, so yes.
- rsc 9y agoHave you actually used Go 1's goto? There's not a lot it can actually do. It's there for generated code state machines, and that's almost all it's good for. But yes, goto will stay in the absence of a very compelling benefit to take it out, a benefit that would far outweigh the cost of breaking all the programs that use it.