ra’s avatarra’s Twitter Archive—№ 42,122

    1. …in reply to @tiagoluchini
      @tiagoluchini theyre basically an abstraction over function returns. by default, most languages obey a stack discipline, parameters go into a function and a result comes out, pushing and popping off the stack. in CPS you pass a function to call with the results instead, kind of like a callback
  1. …in reply to @ra
    1. …in reply to @ra
      @tiagoluchini calling a continuation is always a tail call, so when your whole programming style is based on this technique tail call optimization is not a "nice to have" anymore but a real semantic requirement, which i never quite got