This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
noConstantCondition
and while(true) {}
#4746
Conaclos
started this conversation in
Suggestions
Replies: 1 comment 3 replies
-
How do you propose to relax the condition? An option? Or with a specific check? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using the constant condition
true
in a while loop seems a common idiom in JavaSCript:On the Typescript Compiler code-base it appears 94 times.
I think we could relax
noConstantCondition
to allow this idiom.Opinions?
Beta Was this translation helpful? Give feedback.
All reactions