No generics (beyond tensor, Result, and ?T). Mog has a small, fixed set of parameterized types built into the language. You cannot define your own generic structs or functions. This eliminates an entire class of complexity — no type parameter inference, no trait bounds, no monomorphization. If you need a collection of a specific type, you use the built-in array, map, or struct types directly.
Get Notified when a new article is published!
。立即前往 WhatsApp 網頁版对此有专业解读
Excessive ceremony for common operations
外国籍船员在中国籍船舶上工作的,按照有关船员管理的法律、行政法规的规定执行。
label: "root", value: 1,