Last active
August 29, 2015 14:14
-
-
Save lpiepiora/8cb621d9d339b87ee360 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.PrintStream | |
def log(m: String) | |
(implicit o: PrintStream, | |
prefix: String): Unit = o.println(s"[$prefix] $m") | |
implicit val out: PrintStream = System.out | |
def ?[T](implicit w: T): T = w | |
log("!!! MSG !!!")(?, "prefix") | |
// ^-- wildcard |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment