Provide content tests with 'in' #3979
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
closed-duplicate
Closed in favor of an existing report
type-enhancement
A request for a change that isn't a bug
This issue was originally filed by [email protected]
Basically I think it would be nice to extend the use of in from just for loops to also be used inside statements for checking content
int a = 44
print(a in [1,3,44]);
// true
This would give 'in' more uses and would mean that content checks are often cleaner to read.
Let me know what you think
The text was updated successfully, but these errors were encountered: