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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Functional refactoring in Scala

5 点作者 batasrki将近 16 年前

2 条评论

mgreenbe将近 16 年前
Does Scala perform deforestation? If not, then separating construction and deconstruction is an abstraction win but a performance loss. A commenter, brandon, mentions this.<p>That being said, I've always preferred to think in terms of separation of (computational) concerns, something functional programming excels at. And it's often not hard to deforest manually when the time comes.
papaf将近 16 年前
I've only been playing with it for a few months but I really like Scala. Its worth remembering when you look at the code that this is a compiled, statically typed, language running on the JVM. Its so easy to forget this because it feels like coding in a scripting language.