Logo

Programming-Idioms

  • C++
  • Js
const point = { x: 1, y: 2 };
var p = { x: 1.122, y: 7.45 };

Types are implicit. Just initialize a variable.
struct Point{
  double x;
  double y;
};
type Point is
   record
      X : Float;
      Y : Float;
   end record;

New implementation...
< >
programming-idioms.org