Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider maximum recursion depth #6

Open
azaika opened this issue Oct 5, 2023 · 1 comment
Open

Consider maximum recursion depth #6

azaika opened this issue Oct 5, 2023 · 1 comment

Comments

@azaika
Copy link

azaika commented Oct 5, 2023

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants