←back to thread

200 points jorangreef | 1 comments | | HN request time: 0.211s | source
Show context
lokl ◴[] No.24293396[source]
Zig is appealing to me, but I wonder whether time spent mastering Zig would be better spent mastering C.
replies(4): >>24293635 #>>24293667 #>>24294737 #>>24296869 #
jorangreef ◴[] No.24294737[source]
The first rule of C is that no one masters C, but you could try anyway and still have time to master Zig in a matter of weeks, which is a rounding error. Given that both offer a C compatible ABI, what would serve your projects better?
replies(2): >>24294781 #>>24294866 #
1. dnautics ◴[] No.24294866[source]
If one does both, almost certainly learning zig will make for a better C programmer, as zig often forces you into patterns that would be best practices for a C programmer.