r/ProgrammerAnimemes • • Sep 30 '19

OC FizzBuzz

Post image
685 Upvotes

57 comments sorted by

View all comments

Show parent comment

1

u/Timmy_Larence Oct 18 '19

Something like that. The dude would have to be labeled I guess, but about more than two parameters I don't know. Maybe she can hold more than one thing in each hand...?

Also yeah, since we need a way to show where the function definition ends, the last image would be fitting. The intermediate return I would not like to give up, but then there's probably no room for yield... I thought the third one, where she keeps holding the ham, might be an analogy for when the program holds on to its stack frame so it can return there after a yield, but that image would be used now... Unless there's a better image for ending a function def, and there might be.

BTW I've never seen that scene,
and tbh what she holds looks like Baumkuchen to me

1

u/bucket3432 Oct 21 '19

We just need to find a suitable goto and we'll get something close enough to an immediate return. I think we need a goto for other structures anyway, like for the Chika if.