OMG UPDATE: OMG Becky, look at her butt.

Updated on Monday, February 27, 2012

#608

Overheard:
CS136 Prof: If you write this code in C, I'll slap you.

8 comments

  1. B afraid. B very afraid.

    ReplyDelete
  2. I don't get it. Can someone explain it to me?

    ReplyDelete
  3. Probably tail recursion.

    ReplyDelete
  4. ^haha, that was it. Were you there?

    ReplyDelete
  5. Thanks 3. But why is it bad to do tail recursion in C?

    ReplyDelete
  6. It's not. Any sane compiler will optimize tail-recursion.

    If left without optimization, tail-recursion just uses a lot of stack space (memory).

    ReplyDelete
  7. @4, I'm in Petrick's 1:00 section. I haven't been paying too close attention lately tbh, but I doubt it was him. Which class are you in?

    ReplyDelete
  8. ^I'm not in Petrick's section, good guess though (about it being tail recursion).

    ReplyDelete