Type Arithmetics: Computation based on the theory of types

Computer Science – Computation and Language

Scientific paper

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

1 HTML page, 1 C++ source code file

Scientific paper

The present paper shows meta-programming turn programming, which is rich enough to express arbitrary arithmetic computations. We demonstrate a type system that implements Peano arithmetics, slightly generalized to negative numbers. Certain types in this system denote numerals. Arithmetic operations on such types-numerals - addition, subtraction, and even division - are expressed as type reduction rules executed by a compiler. A remarkable trait is that division by zero becomes a type error - and reported as such by a compiler.

No associations

LandOfFree

Say what you really think

Search LandOfFree.com for scientists and scientific papers. Rate them and share your experience with other people.

Rating

Type Arithmetics: Computation based on the theory of types does not yet have a rating. At this time, there are no reviews or comments for this scientific paper.

If you have personal experience with Type Arithmetics: Computation based on the theory of types, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Type Arithmetics: Computation based on the theory of types will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFWR-SCP-O-291823

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.