dart-lang / dart-lang/language
type parameter in operator overloading
Open
request
- Dominant language
- TeX
- Stars
- 2.9k
- Forks
- 239
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 14
Description
Dart does not support adding types in operator overloading.
```dart
void operator |(T value);
```
It would be great if it is supported for function currying, piping using extension and operator overloading.
Contributor guide
Research direction
Review the Dart language specification areas covering operator overloading and generic type parameters; the issue names no files, tests, or entry points. Clarify the proposed syntax and semantics for generic operators, including the stated currying and piping use cases, and document whether the language change is feasible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100