News for hackers. Stuff that matters.
Re:Ask HN: Where did you first come across functional progra... by curious16 on Thursday June 01, 2023 @02:51AM (#36148254)
What language do you work in now? If it is an imperative language do you avoid state as much as possible?
Re:Ask HN: Where did you first come across functional progra... by jdale27 on Thursday June 01, 2023 @03:53PM (#36156484)
Mostly Python. I do try to avoid mutable state as much as possible, and generally keep things functional (in the sense of functions used for the return values, not their effects). When there is mutable state, keep it as local as possible (within functions or classes).