Skip to content

C++ Has Become More Pythonic

Python是出名地简单,而C++则相反,出名的复杂。C++的一个非常重要的发展方向就是: 简化。显然它不断地吸收了其他programming language中的一些特性来使它的使用简单,从对比可以看出,C++的很多新特性都可以看到Python的影子。

preshing C++ Has Become More Pythonic

It’s true. Modern C++ lends itself to a whole new style of programming – and I couldn’t help noticing it has more of a Python flavor. Ranged-based for loops, type deduction, vector and map initializers, lambda expressions. The more you explore modern C++, the more you find Python’s fingerprints all over it.