about summary refs log tree commit diff stats
path: root/apps/README.md
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-07-25 10:21:22 -0700
committerKartik Agaram <vc@akkartik.com>2020-07-25 10:21:22 -0700
commit32055c369b9e7aeb211dbc92834fe5bcaa0540c6 (patch)
treeccc8635f7edc2238bc7e6af8e5a45cf9af4b2067 /apps/README.md
parentba4e33f711aae766f4469e6930fa7fcacb349cbb (diff)
downloadmu-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