Closed kobajagi closed 11 months ago
This pull request has been linked to Shortcut Story #71887: Additional client middlewares.
Could it be useful to have an optional argument for ForEachZone that allows users to specify a subset of the zones? It could be a list of zones. Or maybe we could use the option pattern, so that you can for example use v3.SwissZones. Just an idea.
Could it be useful to have an optional argument for ForEachZone that allows users to specify a subset of the zones?
Idk if that is the usecase that justifies extra code. Helpers should solve common problems, zones subset iteration doesn't sound common (i cannot think of any usage internally). I'd left it for consumers to implemen.
Example usage of
ForEachZone
and logging with builtinLogger
implementation (StandardLogger
):