Re:Scala: the Case for Correctness
by rld on Tuesday October 14, 2014 @11:24PM
(#8457040)
What do you mean by "more aesthetic"? As in syntax?
[ Parent
| on HN ]
Speaking for OP here, but yea. The simple examples are definitely simple. But in practice it can get out of hand really quick.
The type system is crazy powerful, but that also means it's crazy complex.
There are sometimes too many ways of doing the same thing.
E.g.
- syntax: def func() { and def func(): Unit = {
- collection library
Re:Scala: the Case for Correctness
by frowaway001 on Wednesday October 15, 2014 @12:25PM
(#8459370)
> def func() {
That's already deprecated (under -Xfuture):
<console>:1: warning: Procedure syntax is deprecated.
Convert procedure `func` to method by adding `: Unit =`.