Skip to content

Commit 50b9d71

Browse files
authored
Update Value Classes Intro (#2001)
1 parent 24e3944 commit 50b9d71

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

_overviews/core/value-classes.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ permalink: /overviews/core/:title.html
1313

1414
## Introduction
1515

16-
Value classes are a new mechanism in Scala to avoid allocating runtime objects.
17-
This is accomplished through the definition of new `AnyVal` subclasses.
18-
They were proposed in [SIP-15](https://docs.scala-lang.org/sips/pending/value-classes.html).
16+
First proposed in [SIP-15](https://docs.scala-lang.org/sips/pending/value-classes.html) and introduced in Scala 2.10.0, value classes are a mechanism in Scala to avoid allocating runtime objects. This is accomplished through the definition of new `AnyVal` subclasses.
17+
1918
The following shows a very minimal value class definition:
2019

2120
class Wrapper(val underlying: Int) extends AnyVal

0 commit comments

Comments
 (0)