17 ms·
Scala is a very complex languages, allowing tons of construct. And multiple ways to code anything. In any serious, bigger team project, you don't wanna use Scal
by TeeWEE 10y ago
Scala is a very complex languages, allowing tons of construct. And multiple ways to code anything. In any serious, bigger team project, you don't wanna use Scala imho. Not forgetting the super ugly stack traces.
If you really need functional programming, use a more functional language.
If you need speed, consistent code, and lots of developers. Use golang. Its simplifies software engineering.
Also if forced to use the JVM, i would chose Kotlin over Scala.
- TeeWEE 10y agodef doSomething():Unit = {...} def doSomething:Unit = {...} def doSomething() = {...} def doSomething = {...} def doSomething() {...} def doSomething {...}
- kodablah 10y agoThe ambiguous non-equals form will go away w/ Dotty IIRC. And the presence/absence of parentheses are NOT the same thing.
- adriaanm 10y agoProcedure syntax (the last two lines, lacking the `=`) will be deprecated in Scala 2.13. The two variants before those are due to type inference. Are you really arguing against type inference? The empty argument list `()` is a convention to denote that a method has a side-effect, whereas a method with no argument list at all is considered pure.