DEV Community

Discussion on: What simple things annoy you about your favourite programming languages?

Collapse
 
connectety profile image
Connectety • Edited

I really love Scala, but

  1. The compiling time can be so long (example: the classical "Hello World!", Scala: 4420ms (Without fsc) Java: 107ms (as a comparison)
  2. Values can be returned without return statement
  3. parameters always become immutable

(also if you're programming half of the project in Java, "++" can confuse you, because it does different things in Java and Scala)

Collapse
 
mortoray profile image
edA‑qa mort‑ora‑y

What don't you like about #2, that values can be returned without a return statement? Are they named returns in the function signature?

Collapse
 
connectety profile image
Connectety • Edited

You somtime accidentally return values (method type = unit (so you don't have to return null and can't get a nullPointException)) and sometimes it can take a while to understand that something gets return (like when a function does return true if it did what it should and that gets returned by another function)