Is there any similarity between Scala and Haskell? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Is there any similarity between Scala and Haskell?

Is it easier to shift from Scala to Haskell?

8th Jan 2018, 1:06 AM
Tapas Mondal
Tapas Mondal - avatar
5 Answers
+ 1
I saw in another thread that they are very similar, but I don’t know anything about either of them.
8th Jan 2018, 1:11 AM
Jacob Pembleton
Jacob Pembleton - avatar
+ 1
Both of them follow functional paradigm which is a different concept from the widely used Object oriented paradigm.
8th Jan 2018, 1:55 AM
Ravi Chandra Enaganti
Ravi Chandra Enaganti - avatar
+ 1
So both Haskell and Scala are functional languages. Once you are familiar with one functional language, you can learn other functional language little easier. Let me explain what is Functional programming by comparing to OOP. In OOP, we treat the data and the operations on that data as one entity called object. We design the system by creating multiple objects interacting with each other. However functional paradigm suggests that the data and operations (behavior) are two separate entities. These operations should not change the state of data. They just and take the data and return them in a new form without modifying the original state. These are also called pure functions which do not modify the state of it's parameters. One advantage of this could be ease of parallel execution, because one object can be sent to multiple parallel functions without worrying about the state change by one particular function. You might want to read the following link for more details. https://www.codenewbie.org/blogs/object-oriented-programming-vs-functional-programming
9th Jan 2018, 7:03 AM
Ravi Chandra Enaganti
Ravi Chandra Enaganti - avatar
0
Please give me details
8th Jan 2018, 4:11 AM
Tapas Mondal
Tapas Mondal - avatar
0
Good
9th Jan 2018, 8:08 AM
Tapas Mondal
Tapas Mondal - avatar