A pure function has referential transparency: the same input always gives the same output.
纯函数具有引用透明性:相同输入总会得到相同输出。
Because the logging call breaks referential transparency, you can’t safely replace the expression with its value in every context.
由于记录日志的调用破坏了引用透明性,你无法在所有上下文中都安全地用该表达式的值替换它。