-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
'case' removed when possible from Initialization #bruce #time 10m
- Loading branch information
Bruce Eckel
committed
Jul 22, 2024
1 parent
38eec60
commit 56fa76b
Showing
2 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
In this book, we follow the Scala practice of preferring `case` classes over ordinary classes.{i: "case class"}{i: "class, case"} | ||
`case` classes are immutable by default and automatically provide commonly needed functionality. | ||
You aren't required to use `case` classes to work with the Effect system, but they provide valuable conveniences. | ||
|