Skip to content

Extend lub/glb to more types#340

Merged
ggreif merged 67 commits intomasterfrom
gabor/object-lub-glb
Jun 19, 2019
Merged

Extend lub/glb to more types#340
ggreif merged 67 commits intomasterfrom
gabor/object-lub-glb

Conversation

@ggreif
Copy link
Contributor

@ggreif ggreif commented Apr 23, 2019

This is a peek at the final version and request for comment on the further direction.

Added to the type algebra:

  • tuples
  • objects
  • arrays
  • functions
  • Shared
  • futures

Laundry list:

  • test glb for variants
  • remove TBR?
  • consider var in objects, arrays (do they add indeterminism/effects?)
  • are there any other meaningful points in the lattice?
  • move the clause(s) t1', t2' when eq t1' t2' -> t1 further up? Costly
  • alpha-equivalence in polymorphic function types, need to open
  • go contravariantly with Func type param bounds
  • can we relax sharing (resp. control) mode checking for functions?
  • style issue: make the use of t1' etc. consistent in touched functions
  • recursion in types
  • make is_recursive_con more precise Not needed any more
  • @glb (Int, Nat)/2 appears in types, sometimes we need to reduce!
  • check whether we need to observe polarity for bounded params

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants