Files
hakorune/docs/archive/development/current/RESULTBOX_MIGRATION_TODO.md
nyash-codex 7c55baa818 refactor(joinir): Phase 190 convert.rs modularization
- Created joinir_function_converter.rs (~133 lines): Function-level conversion
- Created joinir_block_converter.rs (~691 lines): Block-level conversion
- Reduced convert.rs from 943 → 120 lines (87% reduction)
- Total: 944 lines (original 943 lines, minimal overhead)
- Separation of concerns: Function vs Block responsibilities
- All handlers moved to block_converter for better organization
- Maintained backward compatibility with existing API
- Build successful, simple tests passing
2025-12-05 14:41:24 +09:00

1.3 KiB
Raw Blame History

ResultBox Migration TODO (Phase 9.78h follow-up)

Status: Legacy TODO状態スナップショット
Note: 実際の移行状況・今後の計画は RESULTBOX 関連のコードとロードマップ側を正とし、このメモは Phase 9.78h 時点のタスク列挙の記録としてのみ保持しています。

Goal: fully migrate from legacy box_trait::ResultBox to boxes::result::NyashResultBox (aka boxes::ResultBox).

Current usages (grep snapshot)

  • src/backend/vm.rs
    • Handles both new NyashResultBox and legacy box_trait::ResultBox for .is_ok/.get_value/.get_error (deprecation suppressed)。

Proposed steps (small, incremental)

  • Step 1: Keep dual handling but gate legacy path with feature flag or cfg for deprecation-only builds任意
  • Step 2: Audit call sites that construct legacy ResultBox; replace with boxes::result::NyashResultBox constructors。
  • Step 3: Remove legacy path from VM once no legacy constructors remain。
  • Step 4: Delete/Archive legacy box_trait::ResultBox(テスト緑後)。

Notes

  • New API already aliased: pub type ResultBox = NyashResultBox; so external references may transparently resolve after migration。
  • Keep migration scoped: do not mix with unrelated refactors。

Last updated: 2025-08-25