Skip to content

Latest commit

 

History

History
20 lines (11 loc) · 443 Bytes

File metadata and controls

20 lines (11 loc) · 443 Bytes

Project Amber

Goal: Reduce boilerplate code in Java.

How? By adding helpful new language features like pattern matching, records, sealed classes.

  • Focused on productivity, maintainability, and correctness.
public record Person(String name, int age) {}

Person person = switch(getPerson()) {
  case (String n, int a) -> new Person(n, a);
};

Benefits: Focus more on business logic. Write less repetitive code.