dart-lang / dart-lang/language
It is inconvenient that the default value of a formal parameter is constant
Open
request
- Dominant language
- TeX
- Stars
- 2.9k
- Forks
- 239
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 14
Description
Currently, default values are constant expressions, which implies that it is impossible for a function declaration to use the default value mechanism to specify a non-trivial computation which fills in an actual argument value when it is omitted at the call site.
Contributor guide
Assessment
This issue has not been assessed yet.