Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Enforce that == is used instead of === for strings #262

Open
tbosch opened this issue Aug 17, 2015 · 1 comment
Open

Enforce that == is used instead of === for strings #262

tbosch opened this issue Aug 17, 2015 · 1 comment

Comments

@tbosch
Copy link

tbosch commented Aug 17, 2015

In Dart, strings are not identity equal if they have the same content (only sometimes, e.g. if they are small or the app runs in dart2js).

@tbosch
Copy link
Author

tbosch commented Aug 17, 2015

Doing it this way is less error prone than changing === to == when we know that the type is a string...

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

No branches or pull requests

1 participant