Closed
Description
it's been said many times that certain features cannot be implemented properly due to hitting infinite recursion, and because of that all sort of shortcuts been taken to keep performance acceptable
consider adding a max-depth
parameter to the compilerOptions
which controls how deep the type checker can go
for developers who don't care about thorough type checks the depth can be 0
others can set it to any comfortable number which gives acceptable results in acceptable time
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
[-]allow better typechecks by allowing to set the max-recursion depth[/-][+]allow better typechecks by customizable the max-recursion depth[/+][-]allow better typechecks by customizable the max-recursion depth[/-][+]allow better typechecks by setting a max-recursion depth[/+]type Line = string | Line[]
? #3988RyanCavanaugh commentedon Sep 18, 2019
Very few people could use this flag usefully and many more people would set it to nonsense values and feel that the results were unexpected.