feat(journal): update week 5

This commit is contained in:
2026-06-11 09:46:35 +02:00
parent 78ecda082e
commit 93a3331a87

22
journal/week5.typ Normal file
View File

@@ -0,0 +1,22 @@
#import "template.typ": week, day
#show: week.with(num: 5)
#day(1)
- Implement generics
- Refactor type checker
- Create demo program
#day(2)
- Define formal calculus rules
- Add type params to extend block
#day(3)
- Rework extend block for methods
- Goal: allow defining any method on types
- Issues:
- `GetExpr` can reference either a property on a `ComplexType` or a method.
- A method (or function) can be overloaded, for example ```py list[T].__getitem__(int) -> T``` and ```py list[T].__getitem__(slice) -> list[T]```