dart-archive / ts2dart

ts2dart TypeScript to Dart transpiler
Apache License 2.0
179 stars 61 forks source link

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

Open tbosch opened 9 years ago

tbosch commented 9 years ago

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 commented 9 years ago

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