Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Js
var p = { x: 1.122, y: 7.45 };

Types are implicit. Just initialize a variable.
const point = { x: 1, y: 2 };
type Point is
   record
      X : Float;
      Y : Float;
   end record;

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