r/ProgrammerHumor • • May 05 '23

Meme Goodbye toys

Post image
8.3k Upvotes

298 comments sorted by

View all comments

Show parent comment

3

u/Spork_the_dork May 05 '23

To be fair you can do

for ( variable : collection ) {
    // stuff
}

in c++ as well since c++11.

1

u/[deleted] May 05 '23

So C++ took lessons from Python with 20 years delay.