Featherweight generic confinement
2006 ◽
Vol 16
(6)
◽
pp. 793-811
◽
Keyword(s):
Ad Hoc
◽
Existing approaches to object encapsulation either rely on ad hoc syntactic restrictions or require the use of specialised type systems. Syntactic restrictions are difficult to scale and to prove correct, while specialised type systems require extensive changes to programming languages. We demonstrate that confinement can be enforced cheaply in Featherweight Generic Java, with no essential change to the underlying language or type system. This result demonstrates that polymorphic type parameters can simultaneously act as ownership parameters and should facilitate the adoption of confinement and ownership type systems in general-purpose programming languages.
Keyword(s):
2014 ◽
Vol 24
(1)
◽
pp. 56-112
◽
Keyword(s):
1996 ◽
Vol 6
(1)
◽
pp. 111-141
◽
Keyword(s):
2004 ◽
Vol 14
(5)
◽
pp. 519-546
◽
Keyword(s):
2008 ◽
Vol 18
(4)
◽
pp. 729-751
◽
2013 ◽
Vol 23
(5)
◽
pp. 1032-1081
◽
Keyword(s):
1993 ◽
Vol 3
(4)
◽
pp. 465-484
◽
Keyword(s):
2014 ◽
Vol 24
(2-3)
◽
pp. 133-165
◽