Hacker News new | ask | show | jobs
by paedubucher 1208 days ago
> Python has some functional capabilities, but in my experiences with Python devs, those are little used and even shunned.

I like to use things like filter, map, reduce or list comprehensions, but I see very few of those in my coworkers' code bases.

When Python introduced pattern matching, it was rather a pattern-aware switch/case, which does not return a value, as such a construct in a functional programming would do.

> I went from Ruby to Elixir, and even with my basic Clojure experience, it was an effort.

I tried out Elixir twice so far, and since the last time, I worked through 300 pages of SICP. I still have to twist my mind when I'd like to process nested maps or the like in Elixir now.

> It was worth it, but I think the apparently similarity of Elixir to Ruby is actually a negative.

However, Ruby provides a lot of higher-order functions, such as group_by and the like. If you're used to functional-style Ruby code, the transition is easier.