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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Beautiful Racket: Why Racket? Why Lisp?

2 点作者 ProfDreamer大约 8 年前

1 comment

martyalain大约 8 年前
I did appreciate your original 2014 version and I still love the way you speak of Lisps. About functional programming you write &quot;Func­tional pro­gram­ming refers to a stricter style where func­tions receive cer­tain data as input, process only that data, and return a result.&quot; and it&#x27;s a common way of defining it. But most languages - and Lisps too - comes with closures and lexical scoping and (IMHO) that breaks the functional purity. Thanks to a closure an inner function can work on variables defined in the outer function, free variables can be defined and used out of the arguments list. It&#x27;s nothing but side effects, the function is not isolated in a black box. Maybe you can think that the lack of closure is a strong weakness of a language. It is and it is not! You can see what can be done without closures in the [lambdaway project](<a href="http:&#x2F;&#x2F;epsilonwiki.free.fr&#x2F;lambdaway&#x2F;" rel="nofollow">http:&#x2F;&#x2F;epsilonwiki.free.fr&#x2F;lambdaway&#x2F;</a>). And so with a true functional language. Your opinion is welcome.
评论 #13889115 未加载