TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Functional refactoring in Scala

5 pointsby batasrkialmost 16 years ago

2 comments

mgreenbealmost 16 years ago
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.
papafalmost 16 years ago
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.