Scala

Scala is a multi-paradigm programming language, you can write both functional and OO code.
Scala runs on the JVM, meaning you can make use of Java libraries.

Implicits in scala

https://stackoverflow.com/questions/10375633/understanding-implicit-in-scala

Implicit Parameters

The final parameter list on a method can be marked implicit, which means the values will be taken from the context in which they are called. If there is no implicit value of the right type in scope, it will not compile. Since the implicit value must resolve to a single value and to avoid clashes, it’s a good idea to make the type specific to its purpose, e.g. don’t require your methods to find an implicit Int!

Implicit conversions

When the compiler finds an expression of the wrong type for the context, it will look for an implicit Function value of a type that will allow it to typecheck.

Todo:

Ref:
1. https://docs.scala-lang.org/overviews/collections/concrete-mutable-collection-classes.html 2. Why is scala good for concurrency?


Cateogory: [programming languages]
Tags: [mutability] [parallelism]