Because then you couldn't do this:
(define (log-error msg)
(send-to-logging-server
(printf-to-string "The widget on %s, running %s under %s on %s barfed because\n%s"
(machine-name) (implementation-name) (os-name) (cpu-architecture) msg)))
Strings one does not inspect can still be manipulated in many very
useful ways on their way to the outside world.
~AlexeyOn Sat, Aug 17, 2013 at 12:54 PM, Emmanuel Medernach <xxxxxx@gmail.com> wrote:
Hello,
As this is intended to be a logging/reporting facility why
not having only output functions instead of function
returning strings ? Anyway these strings are not meant to be
mutated nor to base decisions on their values, but only to
provide helpful context to the users.
I mean for instance instead of '(implementation-name)' to
provide '(display-implementation-name)'.
Just my two cents (and I hope this is not far too late for comments).
--
Emmanuel Medernach