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.

How to read Haskell like Python

132 pointsby xtacyover 13 years ago

8 comments

antipaxover 13 years ago
To be fair, monadic code does not necessarily have side effects. It's just a useful way of thinking about computational steps. `Maybe` is a monad that is completely pure and has no side effects: <a href="http://www.haskell.org/ghc/docs/latest/html/libraries/base/src/Data-Maybe.html#line-76" rel="nofollow">http://www.haskell.org/ghc/docs/latest/html/libraries/base/s...</a><p>I understand that this article is geared towards beginners, so this is probably just a simplification on the author's part. Other than that it's a great article.
评论 #3237046 未加载
评论 #3236570 未加载
评论 #3236470 未加载
评论 #3236676 未加载
yobbobandanaover 13 years ago
I've tried to learn Haskell a couple times, and I keep running into the basic problem of not being able to search for info on terms like "&#62;&#62;=". If you don't know what it means, how do you find out? I certainly never knew until reading in this article that they were called "fish" operators. I previously tried to work through 3 or 4 different Haskell tutorials, and still didn't know this.<p>This article seems very helpful for simply enabling someone with Python experience to learn Haskell.
评论 #3236874 未加载
评论 #3236605 未加载
评论 #3236595 未加载
评论 #3236590 未加载
评论 #3236822 未加载
eruover 13 years ago
A set of useful lies.<p>Some of my co-workers were interested in learning to read Haskell, not so much in writing it. Let's see whether they like it.
samg_over 13 years ago
For me, one of the biggest obstacles to understanding lots of Haskell code is opaque infix operators.
评论 #3236574 未加载
评论 #3236487 未加载
mvzinkover 13 years ago
<i>&#62; But Haskell programmers are allergic to extra variables.</i><p>Point-free style, best style. <a href="http://news.ycombinator.com/item?id=3233870" rel="nofollow">http://news.ycombinator.com/item?id=3233870</a>
kemillerover 13 years ago
I think the "dabbling" phase of learning a language is important, and this is the best intro for Haskell dabblers I've ever seen. Nice work, author.
switzover 13 years ago
Is it weird that I know haskell and not python? I think so.
rfuggerover 13 years ago
Whoa, as a python guy, this makes me not want to learn Haskell at all. The syntax seems as bad a Perl.
评论 #3236459 未加载
评论 #3236421 未加载
评论 #3236418 未加载
评论 #3236518 未加载
评论 #3236663 未加载
评论 #3238077 未加载
评论 #3237179 未加载
评论 #3236611 未加载