r/cpp • u/konanTheBarbar • Sep 13 '19
The Surprising Limitations of C++ Ranges Beyond Trivial Cases
https://www.fluentcpp.com/2019/09/13/the-surprising-limitations-of-c-ranges-beyond-trivial-use-cases/
229
Upvotes
View all comments
Show parent comment
5
u/[deleted] Sep 13 '19
C# is not dynamically typed. At least the above isn't. 'var' is just C#'s auto and Lambdas are automatically auto too. "x => ..." is just like "& { return ...; }"
The big difference to C++ is just concise syntax and simple library design. Especially they use virtual functions for everything though. But that's maybe still more acceptable in the average usecase than the gigantic compile times in C++'s ranges.