ACM Home Page
Please provide us with feedback. Feedback
A heretical view on type embedding
Full text PdfPdf (227 KB)
Source ACM SIGPLAN Notices archive
Volume 25 ,  Issue 1  (January 1990) table of contents
Pages: 25 - 28  
Year of Publication: 1990
ISSN:0362-1340
Author
R. T. Boute  Department of Computer Science, University of Nijmegen, The Netherlands
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 1,   Downloads (12 Months): 8,   Citation Count: 4
Additional Information:

abstract   cited by   index terms   collaborative colleagues  

Tools and Actions: Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/74105.74108
What is a DOI?

ABSTRACT

Based on a useful concept of type-ordering that implicity or explicitly underlies the type of certain programming languages, it is shown that the type "boolean" can be viewed as a subtype of the type "natural" and hence, by transitivity, of "integer", "rational", and so on. This implies defining 𝔹 = {0, 1 } rather than B = {false, true}, and results in many useful mathematical properties that are not available with the latter definition. It is shown how the danger of confusion (which is often considerably overrated anyway) can be eliminated, and how a slight modification in the formulation of predicate logic can accommodate this definition rather conveniently. The theoretical and practical advantages are illustrated by means of examples.