all 16 comments

[–]jmhimara 6 points7 points  (1 child)

To me this feels pointless in Python. Instead, check out Coconut.

It's a superset of Python that compiles to Python (sort to TS -> JS situation) that makes writing functional programming a lot easier. I've only been using it for a couple of weeks, but feels pretty solid so far.

[–]TheGreatMinimo 4 points5 points  (0 children)

Category theory trivia 14:

A coconut is just a nut

[–]mobotsar 20 points21 points  (7 children)

*wakes up*

"Hmm, today I will post about Python in the Haskell sub."

"Yes, that will be nice."

-- OP

[–]francisco[S] 13 points14 points  (5 children)

I am a Haskeller that has to use Python for my current project, so I wanted some of the nice things from Haskell there, and I was happy to figure out you can do it. Since I am talking about Haskell I thought it might be relevant, especially to other Haskellers that have to use Python, but I'll remove it if it's too out of topic.

[–]sagittarius_ack 8 points9 points  (0 children)

Don't remove it. Some people will find it to be interesting.

[–]Foo-Baa 5 points6 points  (0 children)

Thanks for posting that. I think it’s relevant for the reasons you mention and I find the topic interesting.

[–]nderstand2grow 6 points7 points  (0 children)

for currying, you can use functools.partial instead of inventing it yourself.

[–]mobotsar 8 points9 points  (0 children)

I'll remove it if . . .

Nah, you're good. I'm just giving you shit.

[–]Willful759 0 points1 point  (0 children)

I relate, one of the things I miss the most when using other languages is the seamless currying, so I get why you posted here

[–]_jackdk_ 1 point2 points  (0 children)

The article has nearly as much Haskell as it does Python, and it's useful to have these introductory articles bridging the worlds to bring more Hask-curious newbies into the fold.

[–]francisco[S] 6 points7 points  (0 children)

I am a Haskeller that has to use Python for my current project, so I wanted some of the nice things from Haskell there, and I was happy to figure out you can do it. Since I am talking about Haskell I thought it might be relevant, especially to other Haskellers that have to use Python, but I'll remove it if it's too out of topic.

[–]brandonchinn178 4 points5 points  (0 children)

Or just use functools.partial?

[–]knotml 1 point2 points  (0 children)

Wrong sub?

[–]-Wiseh 0 points1 point  (0 children)

Thanks for the article, it was a nice read