Skip to content

allow better typechecks by setting a max-recursion depth #13052

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

Activity

  1. added
    Needs Investigation
    on May 24, 2017
  2. added
    Declined
    Suggestion
    and removed
    Needs Investigation
    on Sep 18, 2019
  3. RyanCavanaugh commented on Sep 18, 2019

    @RyanCavanaugh
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DeclinedSuggestion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions