Implement effect variable ellision #191
Labels
language feature
A feature proposal for something added to the core language (not the standard library)
type system
For issues related to Ante's type system
If an effect type variable is excluded, one can be automatically inserted into a function type:
add: U32 -> U32
becomesadd: U32 -> U32 can e
This simplifies type signatures. Similarly, if a function is used as a parameter, we can assume it will be called within the function:
Would be able to be written as:
This would be a simple syntactic injection of an effect variable if one wasn't already present. Since the check is just syntactic, types inferred and displayed by the compiler can also omit effect variables if the function uses just one.
If a function passed in as a parameter is ever not called, a different effect variable would need to be manually specified:
The text was updated successfully, but these errors were encountered: