gbracha / nullAwareOperators

Proposal for null-aware operators in Dart
Apache License 2.0
12 stars 2 forks source link

Change ?= to ??= for consistency with other compound assignment operators #6

Closed seaneagan closed 9 years ago

seaneagan commented 9 years ago

All other compound assignment operators simply add = to the operator:

a += b ==> a = a + b a >>= b ==> a = a >> b

It would be more consistent and obvious if ?= were instead ??=:

a ??= b ==> a = a ?? b

nex3 commented 9 years ago

:+1:

gbracha commented 9 years ago

Sounds good to me. To be explicit:

x = x + y => x += y

x = x??y => x ??= y

munificent commented 9 years ago

:+1:

tatumizer commented 9 years ago

consistency

gbracha commented 9 years ago

Done.