Hacker News new | ask | show | jobs
by candiodari 2996 days ago
If that's your argument, then I'd say that C function pointers are absolute shit compared to LISP continuations.

How would do I do this in C ?

  int some_function() {
    // some processing
    fp = package_the_rest_of_this_function_into_a_function_pointer()

    do_some_background_processing_and_callback(fp);

    // all the background processing is done
  }
In LISP, this is easy, in fact, in most LISPs, it's builtin.
1 comments

Of course that's true. But Lisp is shitty at controlling memory use, indirections, and manual MM.