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 Programs Are Imperative Pumpkins

56 pointsby yrashkover 8 years ago

8 comments

Chinjutover 8 years ago
What does the word "pumpkins" mean in this context?
评论 #12831204 未加载
smallnamespaceover 8 years ago
Isn&#x27;t this article just stating the obvious fact that programs at some point do I&#x2F;O, so no program can be purely functional?<p>Every Haskell tutorial seems to introduce the IO Monad to illustrate this distinction.
评论 #12831211 未加载
评论 #12831319 未加载
评论 #12831347 未加载
评论 #12833678 未加载
评论 #12831763 未加载
评论 #12831884 未加载
smt88over 8 years ago
This isn&#x27;t directly related, but if this person wants FP + Java ecosystem, why not use Clojure or Scala?<p>There are functional options for almost all of the big ecosystems now.
评论 #12831203 未加载
评论 #12832024 未加载
paulddraperover 8 years ago
I think the essence of the point was made for me by reading &quot;C is Purely Functional&quot; <a href="http:&#x2F;&#x2F;conal.net&#x2F;blog&#x2F;posts&#x2F;the-c-language-is-purely-functional" rel="nofollow">http:&#x2F;&#x2F;conal.net&#x2F;blog&#x2F;posts&#x2F;the-c-language-is-purely-functio...</a><p>Functional and imperative are paradigms that can &quot;encode&quot; the other, so to speak.
评论 #12833387 未加载
michaelkleinover 8 years ago
I don&#x27;t get this. Any program that interacts with the outside world isn&#x27;t &quot;pure&quot;, by this definition. What&#x27;s wrong with using monads? With monads, you can still do all those side-effecting operations, but be encouraged to separate out the pure bits.
Ace17over 8 years ago
From the article: The &quot;Land of purity&quot; lies above the &quot;Dirty sea of data&quot; .<p>Wouldn&#x27;t &quot;Dirty sea of state&quot; be more appropriate?
评论 #12835561 未加载
KirinDaveover 8 years ago
Why do people, even obviously skilled and well-read people, conflate functional programming with pure programming?<p>You so not need to have pure code to have functional code. You don&#x27;t even need to have pure code to use a monadic approach.
评论 #12833327 未加载
bobthechefover 8 years ago
Why has this been upvoted? The author is a novice and provides no insight. This just reads like he finally got to the second page of your standard book on functional programming and somehow came to believe that everyone else is still on page one. What village is this guy from?
评论 #12831738 未加载
评论 #12831568 未加载