scala kotlin

Scala vs Kotlin: Pimp my library

I've been introduced to the world of immutable data structures with the Scala programming language - to write I've been introduced to the Functional Programming world would sound too presumptuous. Although I wouldn't recommend its usage in my day-to-day projects, I'm still grateful to it for what I learned: my Java code is now definitely not the same because Scala made me aware of some failings in both the language and my coding practices. On the other hand, I became recently much interested in K

scala kotlin

Scala vs Kotlin: inline and infix

This is the third post in the Scala vs Kotlin comparison serie: Pimp my libraryOperator overloading This week, I’d like to address two features: inline and infix - not because they’re related but because neither of them would be enough to fill a post. Inlining comes from C (and then C++). In those languages, a hint could be provided to the compiler through the inline keyword. By doing so, it may replace an inlined function call by the function body itself in order to skip the over

scala kotlin

Scala vs Kotlin: Multiple Inheritance and the Diamond problem

Inheritance is one of the basic tenet of Object-Oriented Programming, along with encapsulation and polymorphism. Alongside simple inheritance, there is multiple inheritance: feature of some object-oriented computer programming languages in which an object or class can inherit characteristics and features from more than one parent object or parent class. It is distinct from single inheritance, where an object or class may only inherit from one particular object or class. C++ is famous for allowing