News for hackers. Stuff that matters.
Re:It's not what programming languages do, it's what they sh... by js8 on Friday March 27, 2020 @10:17AM (#22702994)
Standard functional programming methods apply, in this case you would use inversion of control to limit the access to I/O.

If you need to do "semantically relevant" logging from a pure function, just create a pure function to process the semantic relevant part to something generic (like a Text), and call the simple unsafe logging function on the generic result.

There are no comments on this comment yet.