Comments on: The Ultimate Goto http://tleaves.com/2010/12/17/the-ultimate-goto/ Creativity x Technology Sat, 17 Mar 2012 05:09:58 +0000 hourly 1 http://wordpress.org/?v=3.3.1 By: jfb http://tleaves.com/2010/12/17/the-ultimate-goto/comment-page-1/#comment-8163 jfb Sat, 18 Dec 2010 13:55:18 +0000 http://tleaves.com/?p=2499#comment-8163 Tail-call elimination is an implementation detail, in most cases not a language feature. It would be technically possible to add it to e.g. CPython, if anyone were insane enough to do so. Tail-call elimination is an implementation detail, in most cases not a language feature. It would be technically possible to add it to e.g. CPython, if anyone were insane enough to do so.

]]>
By: bhudson http://tleaves.com/2010/12/17/the-ultimate-goto/comment-page-1/#comment-8157 bhudson Sat, 18 Dec 2010 05:21:21 +0000 http://tleaves.com/?p=2499#comment-8157 You need tail-recursion elimination to play with continuations or else you'll be very sad very fast. Functional languages of course deal with tail-recursion nicely, or else nothing would work, but many others are braindead about it. You need tail-recursion elimination to play with continuations or else you’ll be very sad very fast. Functional languages of course deal with tail-recursion nicely, or else nothing would work, but many others are braindead about it.

]]>
By: Franklin http://tleaves.com/2010/12/17/the-ultimate-goto/comment-page-1/#comment-8156 Franklin Sat, 18 Dec 2010 03:48:24 +0000 http://tleaves.com/?p=2499#comment-8156 Well, every language has closures these days. JavaScript, Perl, Python, Ruby, Clojure, Scala, you name it... I'd be surprised if the next versions of Fortran and COBOL didn't have them. As for continuations, as far as I know, outside Scheme and SML/NJ, only Ruby has full continuations. Other languages have more limited constructs such as Python's generators, and of course it is easy to simulate continuations in any language with closures by just going CPS, and perhaps writing in monadic style. Well, every language has closures these days. JavaScript, Perl, Python, Ruby, Clojure, Scala, you name it… I’d be surprised if the next versions of Fortran and COBOL didn’t have them.

As for continuations, as far as I know, outside Scheme and SML/NJ, only Ruby has full continuations. Other languages have more limited constructs such as Python’s generators, and of course it is easy to simulate continuations in any language with closures by just going CPS, and perhaps writing in monadic style.

]]>
By: jfb http://tleaves.com/2010/12/17/the-ultimate-goto/comment-page-1/#comment-8155 jfb Sat, 18 Dec 2010 03:01:06 +0000 http://tleaves.com/?p=2499#comment-8155 Lovely. As good a description of call/cc as I've ever read. Lovely. As good a description of call/cc as I’ve ever read.

]]>