News for hackers. Stuff that matters.
Re:Towards Scala 3 by snuxoll on Friday April 20, 2018 @11:00AM (#16885303)
Kotlin has many benefits that Scala has in terms of “being a better Java” without sacrificing the readability and usability benefits of Java itself.

Scala is a fantastic language, but it’s not one your average Java developer can pick up in a day or two.

Re:Towards Scala 3 by ionforce on Friday April 20, 2018 @05:32PM (#16888595)
What readability and usability benefits are you claiming Java to have?
Re:Towards Scala 3 by snuxoll on Saturday April 21, 2018 @01:15AM (#16890097)
Java is a simple language, the syntax is easy to parse and logic is generally straightforward to reason about - as a programmer you have very little ability break expectations of how the language itself behaves (no operator overloading, etc).

Scala, on the other hand, gives you a huge toolbox down to some really complicated to reason about features like implicit parameters, creation of completely arbitrary operators, etc.

[Insert some funny pun here about Java giving you a simple tool while Scala gives you an incredibly complicated one]. They're both great languages, but they serve very different purposes and audiences - Kotlin happens to fit Java's demographic better than Scala as a result, it doesn't have the magic and complexity to the same degree Scala does (the most confusing new constructs probably revolve around builders/lambda's with receiver types which aren't needed by most developers not writing DSL's).

Re:Towards Scala 3 by dominotw on Saturday April 21, 2018 @09:40AM (#16891383)
i am almost never surprised when I am reading java code. Its almost never about the code.

With scala I seem to have wtf moments about the language every once in a while. (eg: magnet pattern)