3 ms·
This would probably get messy if you had a large number of URLs to check, and also would be very hard to modify. A bunch of `if` statements that return early wo
by bobbylarrybobby 7y ago
This would probably get messy if you had a large number of URLs to check, and also would be very hard to modify. A bunch of `if` statements that return early would be a lot easier to work with.
- dep_b 7y agoAnd a bunch of `if` statements could get hard to maintain once it turns into a bunch of related compound statements, while it doesn't check for missing combinations compile-time. But I don't think you should call any function outside of constructors with more than three-ish parameters to begin with, so probably you would get a dictionary or list of URL's by the time it grows out of control.