Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

goto considered alright in my book

Name: Anonymous 2012-02-03 20:41

So, who else finds goto useful in the right circumstances and isn't afraid to use it despite the stigma if it makes the code more readable and explicit?

Name: Anonymous 2012-02-03 20:57

Write better code

Name: Anonymous 2012-02-03 20:59

goto
more explicit

Name: Anonymous 2012-02-03 21:01

continuations considered harmful

Name: Anonymous 2012-02-03 21:07

>>3
It's more explicit than just falling out of a loop, which, when nested, can become messy fast

Name: Anonymous 2012-02-03 22:06

Not using goto means you listen to idiots who listen to Dijkstra. The myth is that only bad coders use it. The reality is that only good coders users.

Name: Anonymous 2012-02-03 22:34

>>6
With exceptions. I've seen people using C++ like batch scripts, 100% gotos, all in main.

Name: Anonymous 2012-02-03 22:39

>>7
Who are these people? Surely anybody who thinks C++ is BASIC doesn't actually work as a coder, right?

Name: Anonymous 2012-02-03 22:43

>>8
It was just some windows user on a forum somewhere writing a text based RPG. Clearly he'd only just moved on from DOS and had only read a few pages of sicpcprogramming.com. It was actually quite amusing; it both reminded me of the good old days of `hacking' my school's server using [code]explorer //[serverdir][/code] and it was great fun to know there was somebody so inexperienced so my massive memory leaks didn't look so bad ;-;

But that was a long time ago.

Name: Anonymous 2012-02-03 23:57

>>8'
>windows user
NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL

Name: Anonymous 2012-02-04 1:17

>>8

tehehe that was me when I was starting out.

Don't change these.
Name: Email:
Entire Thread Thread List