12 releases (7 breaking)

0.9.3 Jun 13, 2024
0.8.0 Jun 12, 2024

#135 in Programming languages

Download history 16/week @ 2024-07-28 21/week @ 2024-09-22 1/week @ 2024-09-29

409 downloads per month

MIT license

63KB
1.5K SLoC

som

An idiot admires complexity, a genius admires simplicity.

struct person:
  name: string
  age: number

  age_in_days() -> number:
    let age_in_months = .age * 12;
    age_in_months * 30
  ;

  *new(name: string, age: number) -> self:
    self {
      name
      age
    }
  ;
;

let lucas = person::new('Lucas', 22);
lucas.age_in_days(); // 7920

Dependencies

~4–12MB
~117K SLoC