Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo: "are" -> "or" #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion notebooks/WhyScala.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Scala is a _multi-paradigm_ language. Code can look a lot like traditional Java
1. **Immutable values:** Mutability is a common source of bugs.
1. **Functions with no _side effects_:** All the information they need is passed in and all the "work" is returned. No external state is modified.
1. **Referential transparency:** You can replace a function call with a cached value that was returned from a previous invocation with the same arguments. (This is a benefit enabled by functions without side effects.)
1. **Higher-order functions:** Functions that take other functions as arguments are return functions as results.
1. **Higher-order functions:** Functions that take other functions as arguments or return functions as results.
1. **Structure separated from operations:** A core set of collections meets most needs. An operation applicable to one data structure is applicable to all.

However, objects are still useful as an _encapsulation_ mechanism. This is valuable for projects with large teams and code bases.
Expand Down