Simplify terms. #168

Open
wants to merge 1 commit into
from

Projects

None yet

1 participant

@evincarofautumn
Owner

The Group constructor is redundant because (x) is equivalent to {x} call, and Group is only used for infix desugaring, after which it just gets in the way. This is a work in progress—currently, the compiler can fail to find the right instantiation of the definition generated by lifting the intermediate quotation. In the future, optimisations will be able to remove this unnecessary closure, but this issue needs to be fixed anyway.

Since a quotation is only ever used at a single type, we should be able to generate the correct instantiation immediately.

@evincarofautumn [wip] Simplify terms.
 * Remove 'Group' constructor.

 * Make type variables scoped over definition bodies for 'as'
   expressions. (TODO: break this out into a separate branch.)
34599c7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment