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.

The Functor Pattern in C++

63 pointsby PopaLalmost 13 years ago

3 comments

evincarofautumnalmost 13 years ago
C++ is a powerful language, but with awful syntax and semantics that can discourage experimentation. Since I started using Haskell just over a year ago, my C++ code is much improved—because I can figure things out quickly in Haskell, then translate them to (somewhat write-only) C++. That I think is a large part of what people mean when they say “Haskell makes me a better programmer”. Not only is it a good language in its own right, but it also helps you prototype software that you need to implement in another language for reasons other than language power.
评论 #4252801 未加载
评论 #4253447 未加载
16salmost 13 years ago
std::function is really nice. I've started using it everywhere.
评论 #4251892 未加载
评论 #4253329 未加载
rosejnalmost 13 years ago
...or why types and the lack of anonymous functions combine to make a language painful, ugly, and annoying.
评论 #4253148 未加载
评论 #4253074 未加载