Implement can Effect
syntax for annotating effects
#169
Labels
good first issue
An issue that doesn't require deep knowledge of the compiler to fix or implement
language feature
A feature proposal for something added to the core language (not the standard library)
The
effects3
branch is currently under development for implementing effects in ante's backend. It is expected that the type system component of effects is already complete but a crucial part is missing - the ability to annotate the expected effects a function has.A function should be able to specify its effects via a new
can
keyword:If a function's return type is inferred, the function's effects are also inferred:
If a function's return type is specified but no effects are specified, we should assume the function is meant to be pure rather than inferring the effects:
The text was updated successfully, but these errors were encountered: