Algol
Algol
Different program languages cost differently to develop depending on cost of IDE, developer licenses,
staff that have been hired, etc.
All three of these are languages are free to develop but may have costs when you are developing.
For example, when developing for iOS you need have Mac for developing apps.
ALGOL -
Advantages:
It encourages the production of well structured programs over preceding languages such as
FORTRAN and COBOL.
It led to to the invention of a new metalanguage based on notation which is known as the Backus
Normal Form or Backus Naur Form(BNF)
It gave rise to many other programming languages,
including CPL, Simula, BCPL, B, Pascal and C.
It was also the first language implementing nested function definitions with lexical scope.
Disadvantages:
Since ALGOL 60 had no I/O facilities, there is no portable hello world program.
Its use in commercial applications was hindered by the absence of standard input/output
facilities in its description
The Call-by-value or call-by-name removed need for distinction between input and output
parameters
Absence of elements like flexible arrays, slices, parallelism, operator identification
Sample code:
'BEGIN'
'COMMENT' Hello World program for ALGOL 60;
'INTEGER' I;
'FOR' I := 1 'STEP' 1 'UNTIL' 3 'DO'
'BEGIN'
OUTSTRING(1, '('Hello, world!')');
SYSACT(1, 14, 1);
'END'
'END'
Clojure -
Advantages :
Disadvantges:
Sample code:
Program to print Hello world:
(ns clojure.examples.hello
(:gen-class))
Advantages:
Disadvantges:
Sample code:
Program to print hello world:
import Swift
/* My first program in Swift 4 */
var myString = "Hello, World!"
print(myString)