diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-07-25 10:21:22 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-07-25 10:21:22 -0700 |
commit | 32055c369b9e7aeb211dbc92834fe5bcaa0540c6 (patch) | |
tree | ccc8635f7edc2238bc7e6af8e5a45cf9af4b2067 /apps/README.md | |
parent | ba4e33f711aae766f4469e6930fa7fcacb349cbb (diff) | |
download | mu-32055c369b9e7aeb211dbc92834fe5bcaa0540c6.tar.gz |
6670 - generic functions
Function signatures can now take type parameters starting with '_'. Type parameters in a signature match any concrete type in the call. But they have to be consistent within a single call. Things I considered but punted on for now: - having '_' match anything without needing to be consistent. Wildcards actually seem harder to understand. - disallowing top-level '_' types. I'll wait until a concrete use case for disallowing. We still don't support *defining* types with type parameters, so for now this is only useful for calling functions on arrays or streams or handles.
Diffstat (limited to 'apps/README.md')
0 files changed, 0 insertions, 0 deletions