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

David Feuer david.feuer at gmail.com
Sat Dec 13 17:16:48 UTC 2014


It all depends what "taken" means. Data.Sequence uses <| for cons and
|> for snoc. That may not have been the best decision, but it was made
a long time ago.

On Sat, Dec 13, 2014 at 11:08 AM, Wojciech Narczyński
<wojtek at power.com.pl> wrote:
> 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.
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe


More information about the Haskell-Cafe mailing list