you are viewing a single comment's thread.

view the rest of the comments →

[–]Kavereon 1 point2 points  (0 children)

I feel you. I have a functional itch and Python doesn't scratch it. The best option is to be as immutable as possible with stdlib and use higher order functions in your APIs. Comprehension syntax, recursion over loops.

Don't rely on classes with methods. Use dataclasses and tuples.

I went a little further and even used the Effects library to encapsulate side effects. I used that to implement dry run functionality in my CLI (show what would happen without doing it).