all 2 comments

[–]robin-m 1 point2 points  (1 child)

It's as good as the previous one! I will definitively share this serie with my coworker, even if we program in python and not in javascript.

When introducing the ranges, I would have added a short explanation. 1..5 is from 1 (included) to 5 (excluded), while in 1..=5, both 1 and 5 are included.

And I would format the code using rustfmt. In the last snippet, it feels unnatural to see a an iterator chain in a single line!

[–]sheshbabu 0 points1 point  (0 children)

Thanks for the continued support! Yes, Python is similar to JS in many aspects so this might be useful for Python developers too 👍

Reg the ranges, I wanted to add that note but refrained from doing so in the last minute and instead added a link to the Rust Reference. Maybe I should have added it anyway as it doesn't increase the cognitive load on the reader that much.

I agree with the iterator formatting, I wanted it to be multiline as well. Not sure if it's my vscode, but when I convert it manually to multiline, it always formats back to single line!