Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Php
class Point
{
    /** @var float */
    public $x = 0.0;

    /** @var float */
    public $y = 0.0;
}
type Point is
   record
      X : Float;
      Y : Float;
   end record;

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