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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Functional Programming vets. Thoughts on FP abstractions vs. OOP ones?

1 点作者 Decabytes超过 1 年前
There has been a lot of criticism of clean code and inheritance in recent years, ranging from too many layers of abstraction, to performance issues. I've recently started programming in F# and they use a lot of Small types, Records, Discriminated unions etc. My understanding is this is common in all functional languages. I don't have enough experience with FP to say anything other than they seem nice. But by judiciously using them will I fall into the same traps as people do in a heavily Object Oriented code base?

暂无评论

暂无评论