A Scala @inline final example

This is a link to a nice Scala @inline final example.

"Note, too, that the method definitions are annotated with @inline final, giving the Scala compiler the opportunity to pull them inline, for greater efficiency."

@inline final def debug(message: => Any) =
    if (debugIsEnabled) log(message)

This also demonstrates Scala's call-by-name functionality.