TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Bill Clementson's Blog: JavaScript and Lisp

31 点作者 r11t超过 15 年前

6 条评论

TNO超过 15 年前
Using JavaScript 1.8 expression closures:<p><pre><code> function Y(X) (function(procedure) X(function(arg) procedure(procedure)(arg))) (function(procedure) X(function(arg) procedure(procedure)(arg)))</code></pre>
jdeseno超过 15 年前
Nice but, anonymous recursion is possible with arguments.callee.
评论 #991375 未加载
评论 #991435 未加载
owinebarger超过 15 年前
Tried Doug Crockford's little Javascripter: (define loop (lambda (x) (loop x))) (loop 1)<p>Result in Firefox: "Too much recursion"<p>I'm still surprised I didn't flunk B521 when Dan Friedman put something like this in my Java implementation of a Scheme interpreter and it blew up after some finite number of iterations.<p>It might have worked if method calls were properly tail-recursive!
hypermatt超过 15 年前
Helped me find a cool video from this Waldemar Horwat guy. <a href="http://www.youtube.com/watch?v=Kq4FpMe6cRs" rel="nofollow">http://www.youtube.com/watch?v=Kq4FpMe6cRs</a>
andrewcooke超过 15 年前
&#62; <i>will recognize that functions in JScript are fundamentally the Lambda Calculus</i><p>i would have thought you could say that about functions in any language...
评论 #990949 未加载
vlisivka超过 15 年前
JavaScript is implementation of Scheme (dialect of Lisp) with Java-like syntax.
评论 #991641 未加载