Lambda Generic
ballercat opened this issue · comments
Arthur Buldauskas commented
Goal
Avoid custom keyword lambda
Overview
Instead of a lambda keyword, we could use a Lambda<>
generic type to wrap regular function types to convert them to a lambda type.
Acceptance Criteria
This syntax should work
type Fun = (i32) => i32;
type Closure = Lambda<Fun>;
function getCosure(): Closure {
...
}
- The above works
- Tests