Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Haskell is growing

Name: Anonymous 2014-03-01 8:11

I love it how Haskell is becoming more and more widespread and widely known. More and more people use Haskell at universities and in the industry, enrich the ecosystem and work on GHC. It is really gaining a foothold in the programming world. If there's any language that deserves to displace some of the ancient crap that's plaguing the mainstream, it is Haskell. It really shows that academic soundness means real practical productiveness.

Name: Anonymous 2014-03-01 14:45

>>12
"Forced use of monads" is a good thing because it forces you to be explicit about your effects. This is good for safety, correctness and compiler optimizations.
And if you're sick of changing the type of every function, there's Debug.Trace - an escape hatch just for such cases.
And updating fields with lenses is done with "+=", "-=" and the like - just like in imperative languages. Example:

zoom (units.traversed.position) $ do
  x += 10
  y += 10

See how we don't have to write
units.traversed.position.x += 10
units.traversed.position.y += 10

It's just an example of how lenses are first-class and can be composed around, zoomed, traversed, inverted and all sorts of funky shit the imperative languages don't let you do. That's because the imperative languages are "monkey see, monkey do" - they understand only direct fucking orders. Haskell is more intelligent because it allows you to manipulate everything the way you want to, and only executes things when it's necessary, or when you tell it to. Haskell understands abstraction while the imperative languages are numbskull working grunts.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List