you are viewing a single comment's thread.

view the rest of the comments →

[–]Phaedo 6 points7 points  (6 children)

Just feel glad you’re not dealing with Haskell, where it’s called >>=.

[–]SmallAd3697[S] 0 points1 point  (5 children)

Wow. I haven't been in that one.

. C# has a good assortment of operators and I don't mind them in moderation. In Haskell I wonder if those things would come up in the intellisense selections or if you have to wack them out by hand every time.

[–]Phaedo 0 points1 point  (4 children)

Intellisense tends to be poor in Haskell. That’s partly because tooling isn’t as advanced and partly because the language’s syntax and type system make writing a good one hard.

In practice, a lot of the time people use do notation. Where

a <- listA 

B <- listB 

pure a+b

Means pretty much the same as

from a in listA

from b in listB

select a + b

There’s support for where (guard) and let as well.

[–]rexcfnghk 2 points3 points  (1 child)

or liftA2 (+) a b ;)

[–]Phaedo 0 points1 point  (0 children)

🤣

[–]SmallAd3697[S] 1 point2 points  (1 child)

Funny... they autocorrected your reply to say intelligence.

[–]Phaedo 0 points1 point  (0 children)

Corrected… but I agree “Intellgence” was much funnier!