-
Notifications
You must be signed in to change notification settings - Fork 569
Open
Labels
NeedsHelpCommunity contributions are welcome for this feature!Community contributions are welcome for this feature!enhancement
Description
gopherjs/compiler/prelude/types.go
Lines 244 to 248 in f7c5653
fields.forEach(function(f) { | |
if (!f.typ.comparable) { | |
typ.comparable = false; | |
} | |
}); |
fields.forEach(function(f) {
if (!f.typ.comparable) {
typ.comparable = false;
}
});
nit: one can break out of the loop as soon as a non-comparable is found,
for (var i = 0, len = fields.length; i < len; i++) {
if (!fields[i].typ.comparable) {
typ.comparable = false;
break;
}
}
Metadata
Metadata
Assignees
Labels
NeedsHelpCommunity contributions are welcome for this feature!Community contributions are welcome for this feature!enhancement