[Haskell-cafe] Missing `$` like operators in Haskell

Wojciech Narczyński wojtek at power.com.pl
Sat Dec 13 16:08:25 UTC 2014


W dniu 2014-12-13 o 13:57, Alexander Berntsen pisze:
> On 12/12/14 14:22, Johan Tibell wrote:
>> Everything doesn't have to have an operator! We use operators a bit
>> too much. It hurts readability of code when lines start looking
>> like APL.
> I agree. Furthermore I think '$' (and by extension '&') is dreadful.
> We should have gone with '<|' and '|>' like e.g. F#. It is a shame
> that we do not have mnemonic operators for something so common.
>
>
Oh, I also agree. I find the F# code laid out like:

theThing
|> op1
|> op2
|> op2

visually pleasing and self understandable.

It's not too late,  these two operators are not taken.



More information about the Haskell-Cafe mailing list