Solod: Go can be a better C
Solod:Go可以成为更优秀的C语言
HN 111 分 · 43 条评论 · 作者 koeng · 来源 solod.dev · HN 讨论
【摘要】
Solod ( So ) is a strict subset of Go that translates to regular C.
Solod (So) 是 Go 的一个严格子集,被转换为普通的 C。
So supports structs, methods, interfaces, slices, maps, multiple returns, and defer. Everything is stack-allocated by default; heap is opt-in through the standard library. There is limited support for generics, and concurrency is provided by the standard library instead of being built into the language.
⋯ 继续阅读请登录会员 ⋯