I mean this looks like something that was written because existing code causes the straightforward approach to send everything to purgatory. I've def been there lol.
Read from a stream, this is likely implemented for dealing with handling of newlines (something about the \r\n bullshit in windows or multiple newlines). It's important enough to make it into the standard library.
125
u/aegians May 14 '22
get get get get got got got got
202
u/TitouanT May 13 '22
I don't get it
65
u/Elijah629YT-Real May 14 '22 edited May 14 '22
Yes, I will unget the ungot because it was got by the reget
Edit: Thanks for the award u/Cat__Wrangler
33
u/ososalsosal May 14 '22
What the hell is this even for
40
u/MurdoMaclachlan public boolean isInt(int i) { return true; } May 13 '22
Image Transcription: Code
I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
36
u/XDracam May 13 '22
#define auto got?11
u/thecnoNSMB May 14 '22
This looks more like a rap verse than it does code.
7
u/Live-Substance-2156 May 14 '22 edited May 14 '22
I didn’t see the subreddit and I thought it was supposed to be a clever joke, like, get it, got it, good, but no, no it isn’t
12
u/maxbirkoff May 13 '22
is the problem the rbegin and the pop_back? i.e....
getting the front of the queue and dropping/removing the back?
it might/would be nice to see the rest of the class...
8
u/lachlanhunt May 14 '22
What language is this? I’m not familiar with the
gotkeyword.Edit: it’s C++ according to the flair
3
u/[deleted] May 14 '22
I ungot this
2
u/ferrango Well it's broken now, and nobody is here to fix it May 14 '22
At last, a newspeak based programming language
2
u/brownbruh May 13 '22
I mean this looks like something that was written because existing code causes the straightforward approach to send everything to purgatory. I've def been there lol.
1
u/NinaCR33 May 14 '22
Oh no
1
u/[deleted] May 14 '22
As someone who doesn't understand anything about coding, I can boldly say that I don't understand 🙌🏾
1
u/SuperCaptainMan May 14 '22
Get it, ungot it, good.
1
u/SZ4L4Y May 14 '22
Got is a animal like snek.
1
u/okay-wait-wut May 14 '22
Change ans to it and then this code makes sense.
1
u/greasyjon1 May 14 '22
PR comment: maybe we could clarify this a little bit. Could you please hit CTRL+A and redefine ____....
1
u/The_JSQuareD May 14 '22
But what does it do if
ungetsis empty?1
u/Nerd49 May 14 '22
So many ungets and ungots 😰
1
u/RyanNerd shameless May 14 '22
Considering that to software developers the opposite of
pushispopit follows that code naming like this is inevitable.1
u/Auxilor May 14 '22
DeathGrips++
1
u/DevBen80 May 26 '22
Ungets, I've had a few
1
u/canIbuytwitter May 31 '22
gg
1
u/Objective-Cat-9608 Nov 24 '22
Just an example of doing some very unnecessary shit because you’ve been at the computer too long XD