{"title":"实现可扩展记录的代数子类型化","authors":"Rodrigo Marques, Mário Florido, Pedro Vasconcelos","doi":"arxiv-2407.06747","DOIUrl":null,"url":null,"abstract":"MLsub is a minimal language with a type system combining subtyping and\nparametric polymorphism and a type inference algorithm which infers compact\nprincipal types. Simple-sub is an alternative inference algorithm which can be\nimplemented efficiently and is easier to understand. MLsub supports explicitly\ntyped records which are not extensible. Here we extend Simple-sub with\nextensible records, meaning that we can add new fields to a previously defined\nrecord. For this we add row variables to our type language and extend the type\nconstraint solving method of our type inference algorithm accordingly, keeping\nthe decidability of type inference.","PeriodicalId":501197,"journal":{"name":"arXiv - CS - Programming Languages","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2024-07-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Towards Algebraic Subtyping for Extensible Records\",\"authors\":\"Rodrigo Marques, Mário Florido, Pedro Vasconcelos\",\"doi\":\"arxiv-2407.06747\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"MLsub is a minimal language with a type system combining subtyping and\\nparametric polymorphism and a type inference algorithm which infers compact\\nprincipal types. Simple-sub is an alternative inference algorithm which can be\\nimplemented efficiently and is easier to understand. MLsub supports explicitly\\ntyped records which are not extensible. Here we extend Simple-sub with\\nextensible records, meaning that we can add new fields to a previously defined\\nrecord. For this we add row variables to our type language and extend the type\\nconstraint solving method of our type inference algorithm accordingly, keeping\\nthe decidability of type inference.\",\"PeriodicalId\":501197,\"journal\":{\"name\":\"arXiv - CS - Programming Languages\",\"volume\":null,\"pages\":null},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-07-09\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Programming Languages\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2407.06747\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Programming Languages","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2407.06747","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Towards Algebraic Subtyping for Extensible Records
MLsub is a minimal language with a type system combining subtyping and
parametric polymorphism and a type inference algorithm which infers compact
principal types. Simple-sub is an alternative inference algorithm which can be
implemented efficiently and is easier to understand. MLsub supports explicitly
typed records which are not extensible. Here we extend Simple-sub with
extensible records, meaning that we can add new fields to a previously defined
record. For this we add row variables to our type language and extend the type
constraint solving method of our type inference algorithm accordingly, keeping
the decidability of type inference.