Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Ruby
Point = Struct.new(:x, :y)

Instantiate like this : Point.new(1.0,1.0)
type Point is
   record
      X : Float;
      Y : Float;
   end record;

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