Skip to content

Commit

Permalink
📝 Add readme
Browse files Browse the repository at this point in the history
semver: chore
  • Loading branch information
Somfic committed Jun 12, 2024
1 parent 61accd1 commit b570487
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# som

> An idiot admires complexity, a genius admires simplicity.
```ts
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
```

0 comments on commit b570487

Please sign in to comment.