dart-lang / dart-lang/language

type parameter in operator overloading

Open
#1,044 9 comments 14 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.