forked from leafpetersen/dep-generic-methods
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix leafpetersen#10 - clarify terminology
- Loading branch information
Showing
1 changed file
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,7 @@ | |
## Contact information | ||
|
||
1. **Leaf Petersen** | ||
|
||
2. **[email protected]** | ||
|
||
3. **[https://github.com/leafpetersen/dep-generic-methods](https://github.com/leafpetersen/dep-generic-methods)** | ||
|
||
Other stakeholders: | ||
|
@@ -298,7 +296,16 @@ main() { | |
``` | ||
|
||
## Proposal | ||
## Terminology | ||
|
||
Informally speaking, a Dart `typedef` defines *function type* (e.g., see [[1][], [2][]]), but the technically more precise statement is that a `typedef` defines a _function-type **aliases**_. | ||
|
||
In *this* proposal, the terms "function type" and "generic function type" will refer to the **type denotation / semantic type** of a function and generic function, respectively. | ||
|
||
[1]: https://www.dartlang.org/docs/dart-up-and-running/ch02.html#typedefs | ||
[2]: https://www.dartlang.org/articles/emulating-functions/#function-types | ||
|
||
## Proposal details | ||
|
||
The proposal is to add a simple form of generic methods and functions to Dart. | ||
Specifically, it allows top level functions, local function definitions, static | ||
|