|
|
|
|
|
by dmitriid
1297 days ago
|
|
This amounts to demagoguery. Because yes, it's a fact that in a "pure functional program" you need to re-engineer half of the program if you need to put the log somewhere where it's "oh so pure", and where you didn't need logging before [1]. Or thread IO through the entire program to begin with. > Sometimes a couple of 100 lines need to be rewritten - that is the max that I ever had to do. Where in a pragmatical language you just add `Logger.log` or equivalent [1] Spare me the pontification of "if you need logging, you're doing something wrong, this must be covered by tests or type systems". There are things you must log like metrics, audit logging, tracing values through the system, and it is a 100% certainty that you will add logs to places where no logging existed before. |
|
It's most certainly not a fact. It's trivial to insert Debug.trace, for example.