-
Notifications
You must be signed in to change notification settings - Fork 223
Closed
Labels
featureProposed language feature that solves one or more problemsProposed language feature that solves one or more problems
Description
Overwriting behavior via extension can be handy to sneak in added behaviors / fixes without changing the API
void main() {
't-e-s-t'.split('-');
print('done');
}
extension MonkeyPatch on String {
split(Pattern pattern) {
print('splitting');
this.split(pattern); // maybe not "this"
}
}
AlexanderFarkas and sarbazx
Metadata
Metadata
Assignees
Labels
featureProposed language feature that solves one or more problemsProposed language feature that solves one or more problems