When to Make a Type

  • Authors:
  • Martin Fowler

  • Affiliations:
  • -

  • Venue:
  • IEEE Software
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

When I started programming computers, I began with fairly primitive languages, such as Fortran 4 and various early flavors of Basic. One of the first things you learn using such languages - indeed, even using more up-to-date languages - is which types your language supports. Being oriented toward number crunching, Fortran supported integer and real types, with the interesting rule that any variable whose name started with the letters I through N was an integer, and all other variables were floats. I'm glad that convention hasn't caught on, although Perl is close. Furthermore, using object-oriented languages, you can define your own types and in the best languages, they act just as well as built-in ones.