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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Mod Lang: What are the features of a modern programming language syntax?

8 点作者 rdallasgray大约 12 年前

1 comment

tom_b大约 12 年前
I think that the idea that programmers want to have anonymous functions is hitting on something. I play with Clojure on a semi-frequent basis and find myself often taking advantage of dropping in anonymous functions to my map, reduce, filter, and other functional Clojure built-ins very naturally.<p>I probably over-do it some - it feels like a bad "code smell" when I wind-up with lots of nested (fn [...] (stuff)) statements in deeper and deeper chunks. I usually pull them out just for my own clarity. Maybe I should make myself a rule to only use one or two anonymous functions.<p>Lots of fun though. Nothing like coming back to code from two days ago and going "what was I thinking?"