DOL v0.7.2
Breaking Change
Replace self. with this. in method bodies for instance self-reference.
Features
- Add
thiskeyword for instance self-reference (DOL 2.0) - Add
Expr::ThisAST variant with full compiler support - Update all example files to use
this.field/this.method()syntax - WASM compiler stub for
this(full support coming later)
Design Rationale
Chose this over self because:
- Differentiates DOL from Rust's
selfconventions - Broader familiarity (JS, Java, C++, C#, TypeScript)
- Emphasizes genes as domain objects, not implementation structs
Note: Self remains as the type-level self-reference (standard convention).
Migration
- self.value
+ this.value
- self.method()
+ this.method()