You can't use this... just because.. you can't!

You can't use this... just because.. you can't!

Attached: c-goto-statement.jpg (300x201, 7K)

you can use it but many people think it's inelegant and low level

goto considered based

Teacher told us to never do it.

We use it regularly in production code. It's not a "you can never use it!" thing, it's a "you're probably too retarded to use it right" thing. Kind of like void pointers. Inherently nothing wrong, but you're probably way the fuck off base if you think you need them.

Just willy-nilly GOTO with labels or god forbid, line numbers, is garbage. You shouldn't use it, and any familiarity with the Bohm Jacopini theorem will enlighten you as to why it will only ever clutter your program.

However, breaking out of a loop is based, and people who disparage break and continue aren't real programers.

Based

Not using goto statements can improve readability. Especially if you have a 10000 line file with gotos that go from line 429 to line 8956

goto jumps should be scoped to the function they're used in, longjumps that cross function scopes should basically never ever be used

Everyone but Any Forums figured this out in 1984

Isnt "Go to" just a function call without parameters?

>Not using goto statements can improve readability. Especially if you have a 10000 line file with gotos that go from line 429 to line 8956

It's not like a 8000-line for-loop is any better.

>Isnt "Go to" just a function call without parameters?
No

It should be used to break out of nested loops and clean up memory when errors occurr

>noooooo you must follow best practices, goto bad, globals bad REEEEEEEEEEEEEEE

There are few good reasons ever to use globals since all code that uses globals can be modified to not use them
If you never use globals it simplifies multithreaded code by a lot

Back when I was still indoctrinated into code nazism, I used to try and avoid using globals. But you end up with wasting so much dev time passing all kinds of context pointers all over the place. For many applications its just easier and more productive to use globals.

ov vey!

Attached: 476F3B8800000578-5183163-image-a-9_1513616305476-206896659.jpg (634x627, 119.61K)

What you're describing is tech debt

No, its just a jmp instruction.
Its literally the bread and butter of computers and faggots act like its the end of the world.

>you're probably too retarded to use it right

Based leftist philosophy

made me kek

Yes but without other things as well

no. a function call is more than just a jump.