3 ms·
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 rele
by js8 7y ago
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.