Author: eernst@
Status: Under discussion.
This document is an informal specification of the dispatching parameter
feature in Dart. That feature allows a function parameter to implicitly
serve as the receiver for member accesses (e.g., calling instance methods)
in the body of the function, similar to the ability of the object denoted by
this
to implicitly be the receiver of member access operations in instance
methods.
The motivation for having this feature is that it allows developers to
express a number of common programming tasks more concisely, using a
mechanism which is very well-known from the treatment of this
in instance
methods.
An important source of inspiration for this mechanism is TODO: find references to Kotlin/Swift/Groovy.