swifter
swifter copied to clipboard
Question: Why work with generators?
I'm currently trying to fix an issue where overwriting the handler for GET/path/to/*
does not give the correct result. While fixing that bug I have encountered issues because I am not familiar with iterators and recursion, and you seem to use &
where it's not necessary (I think).
I'd like to know the reasoning behind using inout
, generators and recursion instead of iteration and arrays because I'm thinking of rewriting a few functions to fix some issues I ran into and I don't want my pull request to go to waste.