Why I like Scala

Scala is a functional and OO language at the same time. Functional languages allows the programmer to perform complex operations in a standardized way regardless the object type. OO languages includes many  convenient ideas from object oriented area which can break the functional rules when used. Languages can either one of these two categories, but Scala mixes them together. I will introduce Scala programming from these two parts.

  • Functional Part

I mainly introduce some features provided by Scala that make Scala programmer more productive.

  1. Algebraic data types
  2. Pattern matching
  3. Higher order functions and combinators
  4. Ad hoc polymorphism with type classes using implicits
  5. Higher kinds of type constructor polymorphism
  6. Monadic programming
  • OO Part

I assume all of you are familiar with object oriented programming. Here, I introduce a specific set of features for developers coming from JAVA which want to become more productive.

  1. Better type system (Complicated type system)
  2. Type inference
  3. Mixin based inheritance using traits
  4. Better treatment of type variance
  5. Abstract type members and abstract vals
  6. Better module system

Leave a Reply

Your email address will not be published. Required fields are marked *