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.

Why I Love Haskell: An Example

139 pointsby apaprockiabout 10 years ago

7 comments

platzabout 10 years ago
Providing type signatures on all top-level functions would've been nicer for teaching purposes
评论 #9336197 未加载
bluefoxabout 10 years ago
Took 10 mins to hack a silly, inefficient version.<p><a href="https:&#x2F;&#x2F;play.golang.org&#x2F;p&#x2F;UPlzWR5OCO" rel="nofollow">https:&#x2F;&#x2F;play.golang.org&#x2F;p&#x2F;UPlzWR5OCO</a><p>Gives the same result as <a href="https:&#x2F;&#x2F;www.ietf.org&#x2F;mail-archive&#x2F;web&#x2F;tls&#x2F;current&#x2F;msg03416.html" rel="nofollow">https:&#x2F;&#x2F;www.ietf.org&#x2F;mail-archive&#x2F;web&#x2F;tls&#x2F;current&#x2F;msg03416.h...</a> SHA256 test vector.<p>Looks easier to understand, to me...
评论 #9338247 未加载
评论 #9404968 未加载
jonnybgoodabout 10 years ago
Why would this be difficult in other languages, especially other modern languages? I wish the author expanded on it as I don&#x27;t see anything special about the use of Haskell here.
评论 #9336483 未加载
评论 #9339051 未加载
hondo77about 10 years ago
I salute you if you understood anything in &quot;The Problem&quot; section.
评论 #9337421 未加载
评论 #9335734 未加载
评论 #9335725 未加载
Pirate-of-SVabout 10 years ago
I like Haskell because of some of the related tools.<p>- HLint, a very helpful linter for ideomatic Haskell<p>- QuickCheck, Fuzz-testing function&#x27;s properties<p>- hpc, Pretty code coverage
评论 #9337925 未加载
deeviantabout 10 years ago
Then your Haskell expert leaves and then you learn why I hate Haskell(or insert any fringe programming language here).
评论 #9337918 未加载
singlowabout 10 years ago
Why I Love My Left Arrow<p>When pressed in combination with the alt button, it can navigate back to the previous page I was viewing. But not when someone captures onkeypress and cancels it.
评论 #9339413 未加载