Scala vs C++11 post