Lately I have been studying some modern languages, such as Reason, Swift, Kotlin and Dart. I got excited by many of the features they offer. Many of those features I had never read or heard of before. Today, I want to share with you the 10 features that I found most interesting.
Click on any of the Read more… links below to go to the documentation of the language. Often there is some playground that you can immediately start hacking with!
#1 Pipeline operator
#2 Pattern matching
#3 Reactive (Rx) programming build in the language
#4 Implicit name (using “it”) of a single parameter in a lambda function
#6 Cascade operator
#7 If expressions
#8 Try expressions
#9 Automatic currying
#10 Method extensions
I hope you have learned something new. Happy coding :)
Update: All the examples above are from Reason, Swift, Kotlin and Dart. However, many of the ideas above can already be found in much older languages such as Lisp (1958), Smalltalk (1972), Objective-C (1984), Haskell (1990), OCaml (1996) and many more. So while the examples are from “modern” languages, the ideas in this article are actually very “old”. (*)