markusthoemmes commented on issue #3220: Move log message into a closure to defer string interpolation. URL: https://github.com/apache/incubator-openwhisk/pull/3220#issuecomment-360600614 Easier as I thought it will be. For those curious if this really defers even the interpolation: ```scala object Test { def main(args: Array[String]): Unit = { def test(arg: => String, print: Boolean): Unit = { if (print) println(arg) else () } var i = 0 test(s"${i += 1}", false) test(s"${i += 1}", true) println(i) // prints 1 } } ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services