-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.closed-not-plannedClosed as we don't intend to take action on the reported issueClosed as we don't intend to take action on the reported issuetype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
This issue was originally filed by [email protected]
The comparable interface should require implementation of the comparison operators. Given that Dart allows operator overloading, it is far more intuitive to write something along the lines of...
String a = 'aaa';
String b = 'bbb';
if (a < b) {
print ('Hooray for operators!');
}
...than:
String a = 'aaa';
String b = 'bbb';
if ( a.compareTo(b) < 0) {
// Whatever else.
}
This is not a huge deal, but to borrow a phrase from the Haskell wiki, it lowers the "semantic gap between the programmer's intention and the language".
Metadata
Metadata
Assignees
Labels
area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.closed-not-plannedClosed as we don't intend to take action on the reported issueClosed as we don't intend to take action on the reported issuetype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug