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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

LSP client in Clojure in 200 lines of code

164 点作者 vlaaad4 天前

2 条评论

whalesalad3 天前
This is the most Java-y Clojure I’ve probably ever read. Just use Java? It’s so verbose and complex for what it is doing. Breaking this down into smaller functions and using core.async would make it even more succinct.<p>Just want to emphasize this because clojure is indeed a small, lesser known language that has a hard enough time attracting users. This is not what anyone would consider an idiomatic example of using clojure.
评论 #43960179 未加载
评论 #43959102 未加载
评论 #43960325 未加载
评论 #43958458 未加载
评论 #43959894 未加载
评论 #43959907 未加载
askonomm3 天前
Holy crap is this unreadable or what (notably the lsp-base fn). There&#x27;s a reason why in most Clojure companies I&#x27;ve worked at we try to make as small functions as possible, because otherwise it very very quickly becomes an unreadable mess, and you write code after all for humans to read, because if you didn&#x27;t, you might as well just write binary. But, I&#x27;m not surprised many people don&#x27;t want to get into Clojure or Lisps in general, because it takes a boatload of conventions and active discipline to make it a good experience.
评论 #43962689 未加载