Appendix
To help you fully master the Toka language, this Appendix provides a wealth of reference materials and practical development tools.
For developers coming to Toka from other mainstream languages (such as C++, Rust, or Go), this appendix is designed to help you smoothly transition and migrate to Toka.
Appendix Reference Directory
This appendix consists of the following three core reference modules:
1. Toka vs. Other Languages
- Contents: While Toka draws inspiration from various modern languages, it introduces unique concepts (such as dereferencing "wearing/removing a hat," which is the exact opposite of C++). This chapter provides clear comparison tables and side-by-side code snippets comparing Toka with C/C++, Rust, and Go to help you quickly build an accurate comparative mental model.
2. Migration Guide
- Contents: How do you smoothly migrate existing code logic to Toka? Written for experienced engineers, this chapter focuses on translating traditional "object-oriented" or "imperative pointer-passing" logic into highly efficient systems-level code that conforms to Toka's Shape deconstruction, Hat rebinding, and zero-copy implicit reference capture paradigms.
3. FAQ
- Contents: A compilation of the most common pitfalls and questions from the developer community. From beginner confusion like "why can't I use curly braces to define Shapes" to deeper questions like "how does pointer rebinding work inside method calls," this chapter offers direct answers and diagnostic compiler error explanations to help resolve build-time issues.
[!NOTE] Continuous Learning & Community Support Programming is an art of practice, and Toka is rapidly evolving. If you encounter any issues or discover bugs while coding or reading this manual, you are highly encouraged to submit an Issue or Pull Request to the official repository. We hope this manual becomes a helpful companion in exploring the low-level systems world!