scala中None Null Nothing 和 Nil的區別

None是一個object,是Option的子類型,定義以下  [java] view plain copy  print? case object None extends Option[Nothing] {     def isEmpty = true     def get = throw new NoSuchElementException("None.get")   }   scala推
相關文章
相關標籤/搜索