摘要: val logEnable = false def log(msg: => String) = if (logEnable) println(msg) val MSG = "programing is running" log(MSG + 1 / 0) class Stu(private val name:String,private var age:Int) { def N... 阅读全文
posted @ 2016-02-01 14:53 scala 阅读(449) 评论(0) 推荐(0) 编辑