TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Problems of C, and how Zig addresses them

7 点作者 avestura将近 2 年前

1 comment

sylware将近 2 年前
Problems of C syntax:<p>- TLS in the syntax.<p>- Integer promotion.<p>- Implicit casts, missing explicit dynamic&#x2F;static casts. Implicit casts for number literals though (like rust), and for void* pointers too, very probably.<p>- Missing explicit compile-time constants.<p>- Too many loop keywords, one loop{} is enough.<p>- Enumerations, switch, and stuff like _Generic&#x2F;typeof, and more have to go.<p>- should have been only sized primitive types (u8&#x2F;s8...u64&#x2F;s64....f64, etc).<p>- and all the others I am forgetting right now.