WICG / service-worker-static-routing-api

A repository for the ServiceWorker static routing API.
Other
26 stars 6 forks source link

Consider maximum recursion depth #6

Open azaika opened 1 year ago

azaika commented 1 year ago

By the proposed Conditional Syntax [Design Doc], conditions could be recursive (i.e. nested). For example, we can specify and conditions as elements of an or condition. However, since allowing infinite nests may cause some problems in implementations, each browser will restrict the depth of nests and it will involve inconsistent behaviors between browsers. I suggest having max recursion limits in the specification to avoid such confusion.

yoshisatoyanagisawa commented 1 year ago

I agree to have maximum recursion limit. Do we also have a limit to conditions listed in or and and? I mean that or and and can take a list, and writing too long list can also be harmful.