Multiparadigm Programming Languages and Scala Flashcards
what is polygot programming?
programming with different programming languages in a polygot environment
what is the problem with polygot and how do we solve it?
different developers use different languages, making communication difficult.
we use a multiparadigm programming language to communicate in one language.
What is Scala made up of?
imperative + functional + object oriented
what are some of Scala’s properties?
- parallelism
- supports anonymous functions, high order functions, and pattern matching
- statically typed
- supports generic classes and polymorphic methods
- extensible
- compatible with Java
how does Scala implement Object Oriented Programming
every value is an object
What are classes in Scala?
types and behaviours
what are the benefits of Scala over Haskell?
> shorter code
fewer errors
more flexibility
Describe the Scala object system
> class based > single inheritance
Describe Scala functions
> 1st class
can be partially applied
can be higher order