Signed and sealed
نویسندگان
چکیده
Language constructs for defining abstract types commonly come in two varieties: those that add and remove seals dynamically as values cross the abstraction boundary, and those that define the boundary statically using a type signature. Abstract types in dynamically-typed languages are generally defined using seals whereas statically-typed languages more typically use a signature; two prominent exceptions are Haskell, which uses seals, and Standard ML, which provides for both styles. We show that the two styles are interconvertible, and give a proof based on Pitts’ formulation of relational parametricity. In the light of this equivalence we revisit the decision to use seals for abstract types in Haskell and describe a library which extends Haskell with a construct for defining abstract types using signatures by a translation which inserts seals as necessary.
منابع مشابه
Views, Reactions and Impact of Digitally-Signed Mail in e-Commerce
We surveyed 470 Amazon.com merchants regarding their experience, knowledge and perceptions of digitally-signed email. Some of these merchants (93) had been receiving digitally-signed VAT invoices from Amazon for more than a year. Respondents attitudes were measured as to the role of signed and/or sealed mail in e-commerce. Among our findings: 25.2% of merchants thought that receipts sent by onl...
متن کاملEffect of carbonated water manufactured by a soda carbonator on etched or sealed enamel
Objective The purpose of this study was to determine the effects of carbonated water on etched or sealed enamel according to the carbonation level and the presence of calcium ions. Methods Carbonated water with different carbonation levels was manufactured by a soda carbonator. Seventy-five premolar teeth were randomly divided into a control group and 4 experimental groups in accordance with ...
متن کاملFabrication of Biodegradable PCL Particles as well as PA66 Nanofibers via Air-Sealed Centrifuge Electrospinning (ASCES)
This study presents a method for fabrication of ultrafine polymeric nanofibers as well as nano/micro particles utilizing centrifugal and electrostatic forces simultaneously. To reduce the diameter and variety of nanofibers produced from solid state polymerized PA66, a unique electrocentrifuge spinning device was utilized with a rotating nozzle and collector, while the fabrication process (spinn...
متن کاملSIGNED GENERALIZED PETERSEN GRAPH AND ITS CHARACTERISTIC POLYNOMIAL
Let G^s be a signed graph, where G = (V;E) is the underlying simple graph and s : E(G) to {+, -} is the sign function on E(G). In this paper, we obtain k-th signed spectral moment and k-th signed Laplacian spectral moment of Gs together with coefficients of their signed characteristic polynomial and signed Laplacian characteristic polynomial are calculated.
متن کاملOn net-Laplacian Energy of Signed Graphs
A signed graph is a graph where the edges are assigned either positive ornegative signs. Net degree of a signed graph is the dierence between the number ofpositive and negative edges incident with a vertex. It is said to be net-regular if all itsvertices have the same net-degree. Laplacian energy of a signed graph is defined asε(L(Σ)) =|γ_1-(2m)/n|+...+|γ_n-(2m)/n| where γ_1,...,γ_n are the ei...
متن کاملWeak signed Roman k-domination in graphs
Let $kge 1$ be an integer, and let $G$ be a finite and simple graph with vertex set $V(G)$.A weak signed Roman $k$-dominating function (WSRkDF) on a graph $G$ is a function$f:V(G)rightarrow{-1,1,2}$ satisfying the conditions that $sum_{xin N[v]}f(x)ge k$ for eachvertex $vin V(G)$, where $N[v]$ is the closed neighborhood of $v$. The weight of a WSRkDF $f$ is$w(f)=sum_{vin V(G)}f(v)$. The weak si...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2008