News for hackers. Stuff that matters.
Re:Write Junior Code by monoideism on Sunday December 29, 2019 @10:33PM (#21910610)
> For a reader point-free is appalling and way too clever.

I used to believe this, but as I started to read more and more Haskell, I realized that I just had to get used to that style of writing Haskell. I now read it fine, in general. Learning to read point-free is a learnable skill.

Tons of non standard sigils, on the other hand, is a bane.

Re:Write Junior Code by 3fe9a03ccd14ca5 on Sunday December 29, 2019 @11:45PM (#21910882)
> I realized that I just had to get used to that style of writing Haskell. I now read it fine, in general.

The question of course is how true is this for the general engineering community?

Reminds me in some ways of survivor bias: those that stick successfully with Haskell tend to see the shortcomings perhaps as virtues.

Re:Write Junior Code by crimsonalucard on Wednesday January 01, 2020 @11:41AM (#21928826)
I think it's true in general. Point free style is just different from other programming styles it's not particularly unreadable.

Haskell definitely has issues, but I agree with the parent on his opinion on point free style.

Re:Write Junior Code by monoideism on Monday December 30, 2019 @12:08AM (#21910952)
I don’t think Haskell will ever be a language used by the general software development community.

For the record, my primary languages now is OCaml (and to a much lesser extent, functional Scala). But I like reading Haskell code. There are a lot of good ideas there (and no, my Scala/OCaml isn’t loaded down with custom sigils).

Re:Write Junior Code by millstone on Sunday December 29, 2019 @10:59PM (#21910713)
There's definitely a vein of deliberate unreadability. Types and parameters are often labelled positionally instead of given meaningful names. For example the graph library fgl uses typenames 'a' and 'b' instead of useful names like 'NodeLabel' and 'EdgeLabel'.
Re:Write Junior Code by monoideism on Monday December 30, 2019 @12:06AM (#21910944)
OK, those are poor stylistic practices, but they’re orthogonal to point-free style.
Re:Write Junior Code by edflsafoiewq on Monday December 30, 2019 @12:43AM (#21911084)
It is related. In point-free style the "omitted" parameters have to be distinguished positionally; they have no names at all, not even 'a' or 'b'.
Re:Write Junior Code by monoideism on Monday December 30, 2019 @10:52AM (#21914120)
> In point-free style the "omitted" parameters have to be distinguished positionally; they have no names at all, not even 'a' or 'b

Yes, that's literally the definition of point-free style.

I was referring to labeling function parameters `a` and `b`.

Also, when I checked, that's actually not what the FGL library does. It labels type parameters with `a` and `b`. Labeling generics and type parameters with letters of the alphabet is pretty typical for a wide range of languages (ie, `T` in Java, etc.). Arguably, it's a bad idea, but it's by no means unique to Haskell.

Re:Write Junior Code by nmca on Monday December 30, 2019 @05:44AM (#21912454)
^^^^^ This is extremely insightful, and now ranks as the most accurate and succinct explanation I've seen of why point-free is terrible.
Re:Write Junior Code by monoideism on Monday December 30, 2019 @11:01AM (#21914209)
It's not extremely insightful. It's literally the definition of point-free style.

Also, Haskell doesn't have labeled/keyword function parameters, regardless of whether or not you use point-free style. Sometimes, people pass in a record to achieve a similar effect, but in general, passing in a ton of parameters goes against idiomatic Haskell style.