Hacker News new | ask | show | jobs
by yamtaddle 1293 days ago
I don't understand why Perl is consistently dismissed as "line noise" and "write-only" but that characterization's rarely leveled against Haskell. It's much worse about it, IMO. At least the "line noise" variety of Perl doesn't usually dominate basic tutorials and introductions to the language.

[EDIT] Nor do Perl libraries tend to contribute to or encourage line-noise style.

2 comments

I agree that FP languages sometimes exaggerate with the opeators (I think introducing new operators has its uses but the learning curve has to be traded off against the supposed benefits), but...

Perl is IMHO worse because it relies much more on global mutable context. For example, the diamond operator <> behaves differently depending on whether the magic global variable @ARGV is set.

By contrast, Haskell is typed and purely expression based, so that at least in principle you can pull apart expressions, examine them (and test them!) individually and then understand how they combine.

Lens is not an introductory topic in any Haskell tutorial I know.

And Perl is not line noise. It's a very nice language.