Commit bb6f4a1c
bb6f4a1ca326Merged
Yukihiro "Matz" Matsumoto <[email protected]> · 8 months ago · 1 file · ~1 modified
Description
Update PLAN.md — next 3 steps: heterogeneous Hash, POLY arithmetic, megamorphic dispatch
Co-Authored-By: Claude Opus 4.6 (1M context) [email protected]
Details
- Commit
- bb6f4a1ca326
- Parent
- e5578d9bba78
PLAN.mdmodifiedView file
@@ -379,11 +379,13 @@
379379
- ✅ bimorphicダックタイピング (2クラス)380380
- ✅ nilable変数381381
382-
### 次に解放される機能383-
- 異種Hash `{a: 1, b: "str"}`384-
- megamorphicダックタイピング (3クラス以上 → dispatch関数)385-
- 条件で型が変わるメソッド戻り値386-
- sp_RbValue上の算術演算 (+, -, *, / on POLY)382+
### 次の3ステップ383+
384+
| # | 内容 | 設計 |385+
|---|------|------|386+
| 1 | **異種Hash** `{a: 1, b: "str"}` | sp_RbHashでキー/値をsp_RbValueで保持 |387+
| 2 | **POLY算術** (+, -, *, / on sp_RbValue) | タグcheckでInt/Float分岐、String連結対応 |388+
| 3 | **Megamorphic dispatch** (3型以上) | メソッド名ごとにdispatch関数を自動生成 |387389
388390
---389391