News for hackers. Stuff that matters.
Re:Simplify Your Code: Functional Core, Imperative Shell by hackthemack on Monday October 27, 2025 @05:03PM (#45726259)
Yeah. I did not mention what I would do, but what you wrote is pretty much what I prefer. I guess nobody likes it these days because it is old procedural style.
Re:Simplify Your Code: Functional Core, Imperative Shell by bccdee on Monday October 27, 2025 @09:00PM (#45728211)
There's nothing procedural about binding return values to variables, so long as you aren't mutating them. Every functional language lets you do that. That's `let ... in` in Haskell.