From 9b14836791fe9b15ff161b496491762aebe1cdee Mon Sep 17 00:00:00 2001 From: Patrick Moore Date: Wed, 26 Jun 2019 10:28:32 -0700 Subject: [PATCH] Update scala-for-java-programmers.md Java 8 has java.util.function package. Java 8 was released in 2014 (5 years ago). At this point in time, Java developers are *not* surprised about being able to manipulate functions as values and pass them as arguments. --- _overviews/tutorials/scala-for-java-programmers.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_overviews/tutorials/scala-for-java-programmers.md b/_overviews/tutorials/scala-for-java-programmers.md index 3ed8305c2a..9daab8070e 100644 --- a/_overviews/tutorials/scala-for-java-programmers.md +++ b/_overviews/tutorials/scala-for-java-programmers.md @@ -155,7 +155,7 @@ Scala is a pure object-oriented language in the sense that *everything* is an object, including numbers or functions. It differs from Java in that respect, since Java distinguishes primitive types (such as `boolean` and `int`) from reference -types, and does not enable one to manipulate functions as values. +types. ### Numbers are objects @@ -190,7 +190,7 @@ prevents `1` from being interpreted as a `Double`. ### Functions are objects -Perhaps more surprising for the Java programmer, functions are also +Functions are also objects in Scala. It is therefore possible to pass functions as arguments, to store them in variables, and to return them from other functions. This ability to manipulate functions as values is one of