alan icon indicating copy to clipboard operation
alan copied to clipboard

Improve function types

Open dfellis opened this issue 4 years ago • 0 comments

One large issue with the current types is that functions are simply typed function, without their argument and return types declared.

The compiler will error out usage of higher-order functions that don't match what the higher-order function needs, but the error isn't super clear, nor is the source code, as you can't at-a-glance determine what it needs.

Creating a more advanced function-type syntax is absolutely necessary, above and beyond the type syntactic sugar mentioned in a previous issue.

dfellis avatar Aug 19 '20 17:08 dfellis