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.

What is functional programming?

11 pointsby bloatover 9 years ago

1 comment

veddoxover 9 years ago
The title is rather misleading, IMO. What the article is really about is side-effect free programming.<p>This is indeed covered very well, the author manages to explain both what side-effects are and why it makes sense to avoid them in a clear, succinct style with useful examples. Thumbs up for that!<p>However, functional programming is about much more than avoiding side effects. AFAIK, the defining factor for whether a give language can be classed as functional is whether it has functions as first-class objects. That means: can functions be created (and returned) by other functions? Can functions be passed as parameters to other functions? This is a huge area that was completely ignored in the blog post.
评论 #10811891 未加载
评论 #10811924 未加载
评论 #10812379 未加载