1.

In What Ways Scala Is Better Than Other Programming Language?

Answer»
  • The arrays uses regular GENERICS, while in other language, generics are bolted on as an afterthought and are completely separate but have overlapping behaviours with arrays.
  • Scala has immutable “val” as a first class language feature. The “val” of scala is similar to Java final variables. Contents may mutate but top reference is immutable.
  • Scala lets ‘if blocks’, ‘for-yield loops’, and ‘code’ in BRACES to return a value. It is more preferable, and eliminates the need for a separate TERNARY operator.
  • Singleton has singleton objects rather than C++/Java/ C# CLASSIC static. It is a cleaner solution
  • Persistent immutable collections are the default and BUILT into the standard library.
  • It has native tuples and a concise code
  • It has no boiler plate code



Discussion

No Comment Found