摘要:
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... 阅读全文
摘要:
class A { class B; def foo(b:A#B){} //def foo(b:B){} 后面的a1.foo(b2) 就不能通过编译 } object Main { def main(args: Array[String]): Unit = { val a1 = new ... 阅读全文
摘要:
Original Article:A Brief, Incomplete, and Mostly Wrong History of Programming LanguagesbyJames Iry(Chinese Translation byMort Yao)警告:原文中的内容不一定都是真实的。警告... 阅读全文