File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed
Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ showVersion: false
2020> 允许函数处理各种数据,以及一小组新的编译器指令,以允许使用反射访问有关这些类型的信息。
2121> Zig 还旨在提高代码的安全性,它不提供垃圾回收(GC),但是使用可选类型代替 ` null ` ,这避免了空指针的出现。
2222
23+ ![ Cover Image] ( ./public/cover_image.png " Cover Image ")
24+
2325## 为何使用 Zig
2426
2527从本质上看,Zig 是一门 ` low level ` 的高级语言,它和 C 很像,但改善旧问题并提供了完善的工具链,并且它可选支持 ` libc ` 。
Original file line number Diff line number Diff line change @@ -27,3 +27,5 @@ C 很好,非常好,它非常成功,以至于 C 现在已经不再是一门
2727或许可能有人会跟我说 Rust 比 Zig 好,我要说的是你说的基本是对的,目前情况来看,Rust 的的确确比 Zig 好很多,更为完善的生态,更多能拿得出手的代表项目,以及相较 Zig 庞大很多的社区等等,但是在未来谁说的准呢?更何况 Rust 和 Zig 并不是一个赛道上的东西,在我看来,Rust 的目标是 C++ 的替代,因此我更愿意称之为“披着高抽象皮的 low level 语言”,Zig 的目标则是 C,而且目前 Zig 的特性也的确在这个方向发展。
2828
2929Zig 的社区需要更多的人来构建,所以我写了这个文档,帮助新人来更好的理解和学习 Zig!
30+
31+ ![ Cover Image] ( ./public/cover_image.png " Cover Image ")
You can’t perform that action at this time.
0 commit comments