Originally posted by JS987
View Post
Putting types on the right seems generally a much better idea and more consistent with type inference.
`val a = new MyClass()` makes more sense than `MyClass a = new MyClass()`
Having all code blocks auto-return the last statement enables much conciseness and eliminates the need for things like a special case ternary operator. Scala's match/case is much nicer than C/Java/C# switch/case. It also uses the same syntax as Scala's native partial functions, like a mathematical partial function, which is elegant.
Originally posted by JS987
View Post
The whole point of the Rust project is people who want the elegance of the Scala/Haskell syntax, but the deployment characteristics of C (no VM, easy integration with other C libs).
Comment