The evolution of programming languages

All programming languages evolve. New standards arise by adding features to a language. Most times these features come from other languages. For some strange reason, *bad* features are never removed. Some languages such as C spawn children.  Consider Fortran. FORTRAN was followed by FORTRAN II in 1958, FORTRAN III, FORTRAN IV in 1961, FORTRAN 66, FORTRAN 77, Fortran 90, Fortran 95, Fortran 2003, Fortran 2008, and supposedly Fortran 2015.

It is a tribute to a language that can last for near-on *70* years, and evolve in such a smooth manner, from an unstructured entity with assembler-like structures to a modern, clean language with down-to-earth  structures – even if it know suffers from periodic  seizures of OO.

Here is a program written in FORTRAN IV:

C     IT WAS THE FIRST PROGRAMMING LANGUAGE
C     WITH SUPPORT FOR COMMENTS
      WRITE (6,7)
    7 FORMAT(13HHELLO, WORLD!)
      STOP
      END

And the corresponding program written in Fortran 90:

program HelloWorld
    write (*,*) 'Hello, world!'  ! This is an inline comment
end program HelloWorld
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s