A Constraint-Based Presentation and Generalization of Rows

  • Authors:
  • François Pottier

  • Affiliations:
  • -

  • Venue:
  • LICS '03 Proceedings of the 18th Annual IEEE Symposium on Logic in Computer Science
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

We study the combination of possibly conditional non-structuralsubtyping constraints with rows. We give a newpresentation of rows, where row terms disappear; instead,we annotate constraints with filters. We argue that, in thepresence of subtyping, this approach is simpler and moregeneral. In the case where filters are finite or cofinite setsof row labels, we give a constraint solving algorithm whosecomplexity is O(n3m log m), where is the size of the constraintand m is the number of row labels that appear init. We point out that this allows efficient type inference forrecord concatenation. Furthermore, by varying the natureof filters, we obtain several natural generalizations of rows.