Val
mill.api.Val
@Scaladoc(value = "/**\n * A somewhat-type-safe wrapper around `Any`. Stores an un-typed value, but\n * can only be created explicitly by wrapping in `Val(_)` and de-constructed\n * explicitly via `.value`. That makes it much less likely to introduce bugs\n * passing the wrong thing, e.g. `(Any, Int)` can be passed to `Any`, but\n * `(Val, Int)` cannot be passed to `Val`\n */")
A somewhat-type-safe wrapper around Any
. Stores an un-typed value, but can only be created explicitly by wrapping in Val(_)
and de-constructed explicitly via .value
. That makes it much less likely to introduce bugs passing the wrong thing, e.g. (Any, Int)
can be passed to Any
, but (Val, Int)
cannot be passed to Val
Attributes
- Source
- Val.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article