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推
相关文章
相关标签/搜索