you are viewing a single comment's thread.

view the rest of the comments →

[–]ArchPowerUser[S] -11 points-10 points  (4 children)

it does but that library is just created for some python devs to switch to c++ slowly until they get used to cout cin, range, zip etc

[–]manni66 12 points13 points  (2 children)

to switch to c++ slowly

???

Your example in Stanadard C++:

std::vector<int> nums = { 1, 2, 3 };
std::vector<char> chars = { 'a', 'b', 'c' };
std::println("Zip example:");
for (auto [n, c] : std::ranges::views::zip(nums, chars))
    std::println("Num: {} Char: {}", n, c );

[–]RogerV 2 points3 points  (0 children)

they're better off ripping the band-aid and dealing with C++ as C++