Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Java
record Point<T extends Number>(T x, T y) {}
class Point { double x, y; }
class Point{
  double x;
  double y;
}
public record Point(double x, double y) { }

Java 17
type Point is
   record
      X : Float;
      Y : Float;
   end record;

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