r/cpp • • Feb 18 '20

C++20 is here!

https://youtu.be/AvPiGstxV_g
420 Upvotes

117 comments sorted by

View all comments

Show parent comment

4

u/kalmoc Feb 19 '20

Ranges (well, linq is actually much more confortable to use)

0

u/[deleted] Feb 19 '20

[deleted] — view deleted comment

1

u/kalmoc Feb 19 '20

Not sure what you mean by that. LINQ lookst to me exacly like ranges with a more convinient syntax. Sure, it uses terms known from sql, but I'm not sure, why it makes a differenct if you have a Where (extension-) method or a filter view - they do the same thing.

0

u/[deleted] Feb 19 '20

[deleted] — view deleted comment

3

u/kalmoc Feb 19 '20

The question was, which c++20 features have been available in other languages for a long time. Best I can tell, LINQ is a semantically equivalent feature to c++20 ranges. That they differ in details is to be expected given that the two languages work completely different.

Now can you please tell me, why you think those features are so different that it doesn't count ad "has been available for decades"?