>mfw I use a goto in my code
satania
>>107663909What's wrong with gotos? I'm Indian btw
I use them all the time.Especially when you only jump forward to skip sections of code, it doesn't impact cleanliness most of the time
>>107663909And? Dijkstra was a fucking faggot.The longer you've been coding, the more you'll disagree with that pompus (and thankfully, dead) windbag on anything that isn't pure math.
goto has no usecase in good programming languages paired with properly written code.
>>107664348>my specific, perfect, entirely infallible brand of predefined control structures has never been triedOr worse yet, you think the shitlang you use already includes all of them in its tiny set of constructs.
>>107664367The only usecase for goto is to cope with C not having proper control structures for the purpose of error handling and cleanup of resources.Even Poothon and JavaScript has ability to declare that certain resource should be cleaned up when out of specific scope.You're a Cuck who loves doing pointless busywork that compilers could do for past 40 years flawlessly.>inb4 midwit who writes 6 level loops copes with goto being "useful" to break outAny programming language has functions and return statements, you aren't intelligent for writing hard to understand spaghetti.
>>107663909>mfw goto isn't supportednoError: { error = doStuff(); if (error) break noError; return doStuffAgain();}return proceedError();
noError: { error = doStuff(); if (error) break noError; return doStuffAgain();}return proceedError();
>>107664328If Dijkstra was listened to you would never be ALLOWED to write code in the first place. The consumers should only have terminals and only us, the engineers, should be allowed to program computing machines. People who spent years learning the relevant maths although even the CS degree was a mistake. Back when I was a tech lead I never hired cs grads, only people with background in actual mathematics, even if they had less experience because the vast majority of CS grads shouldn't be even doing frontend when they literally don't have. In general I am happy I will never have to actually work in tech again and I can just look at the sorry ass state of this industry from afar.
>>107664395>mentally ill retard immediately spergs out about C for no discernible reasonNot reading any further. And guess how I know you use Rust. A guy like you, you'll probably lie about it now, too, out of embarrassment.
Wondering if this is a valid argument for using goto (not that I think you need one, just entertaining the normal aversion).Say you're leveraging low-level hardware or CPU behavior for some optimization and you want to minimize hidden variables and complexity that could cause security issues or unintended behavior. You want that section of code to be as close to the resulting assembly as possible. Maybe not all the way to inline assembly but still minimizing divergence between source and compiled output.Using goto closes that gap. On one side it helps you structure the code in your head closer to how it actually compiles and runs (readability in the context of that goal). On the other side you get tighter control over where jump statements land in the final binary so the translation is cleaner.Yeah if your goal is high-level abstraction then loops or dedicated iteration functions make sense but there is a usecase for using more primitive gotos.
>>107664581g*d ur based
>>107664581See >>107664508>guy like you, you'll probably lie about it now, too, out of embarrassment.
>>107664589It's embarrasing how mentally ill you are.But you're right, if someone pointed a gun at my head and told me that it's over, I'm not allowed to program in C++ again, my downgraded choice would be Rust and not C.And hypothetically speaking, if it happened to me again with Rust, my choice would be pure assembly, I'd rather write my own compiler in pure asm than ever touch a shitlang that is C.
>>107664477>slurpslurpslurp look at what a good little npc i amYou're even more of a faggot than Dijkstra.
>>107664607You'll be losing your mind with rage and shitting out paragraphs no one reads for a long time. Be sure to updoot yourself. :^)
>>107664612I never wrote a full paragraph in my entire life though?
>>107664607ngl you seem pretty emotional for no reason. There is zero reason for you to actually hold this position with such vigor (and by position i don't mean your preference, but the intense hostile aversion against other people using C) Any normal person including you when you are not trying front in front of random people are going to use any lang that matches the goal. If there was a situation where it made sense for you to use C you would use it with zero fuss. If there isn't a requirement then you use C++ which i am certain you don't program in a C style, not due to intentional avoidance, but just because you are working in a higher level of abstraction. But i'm pretty confident to say you at some point did some low level programming with C++ and at some point used C style programming. And I'm sure you had zero complaints and moved on with your day. Hell i'm pretty sure you played around with C a fair amount. Meaning this strong hostile aversion against C is simply you larping to put on a front because of some fantasy battle/war in your head. Which puts you into this defensive mode making you constantly try to front and project superiority. You are only saying the things you are saying because of this perceived battle in your head and the idea that you need to hit back and put the other person down. It is dishonest to pretend otherwise and I think it would help if you took a look at yourself and realized what you are doing. If you are simply saying all this because you are having fun then whatever, but if this is actually inducing some sort of stress where you actually feel the need to be in this hostile defensive mode then I hope eventually understand that all this stress is self inflicted and you actually don't need to act like this.
>>107664821your unholy reddit nocoder midwit yap formatting reminds me of average C code, something that could be 2 sentences is taking up x5 as much space and is at least thrice as wordy.
>>107664853Its nice to know you actually don't mean anything you say and you are just trying to hit back because you feel the need to. Its a very freeing feeling to know I don't need to fight back. Hope you can learn that at some point.
>>107664862it's ok lil bro, go use that free time to write more gotobabble since RAII filtered you
>>107664897Its actually interesting to see where your mind goes when you can't actually illicit the reaction you wanted and all of your insults and attempts to hit back are ineffective.The replies get less and less coherent and you start to make wild assumptions in the hopes that mean something. Which actually makes the insults more and more meaningless. Like you don't even need to act like this, but even if you did you aren't doing a good job at hitting back. The sick "burns" you are typing out just look more and more deranged. I really want to know what is your perception of the other party that you are fighting against in your head that made you think this reply was meaningful?
>>107664821>trying to reason with the mentally ill retard
>>107664964damn lil bro, you don't actually program at all? wow
>>107664983but enough about C shills
>>107664986Its like you are going down a dialog tree in your head, jumping to the next pre programmed insult. Like tell me why do you feel the need to be so defensive? Where do you see any benefit with all this hostility and self inflicted stress? What is your perception of the other party where you think your replies have any punch to them?Its like those small dogs that simply don't understand they don't need to be hostile constantly barking at the owners friend when they come over. And are so small that are simply unable to project any sort of threat. So much so that the friend sarcastically jokes about how terrified they are.
>>107665055>writing long laments about the mentally ill retard's mentally ill behavior
>>107665055I understand that you're a nocoder midwit, you don't need to keep repeating yourself.