| Sorry if this is a silly question, i am a web developer so I dont usually dwelve into systems or low level programming except out of curiosity. My understanting is that everyone is suggesting to move to memory safe languages when possible, however Zig does not seem to have any. Since zig is a new language my guess is that the main use would be brand new projects, but sholdn't this be done in a memory safe language? It seems that the selling point of Zig is: more modern than C but simpler than Rust, so I understand the appeal, but isn't this undermined by the lack of memory safety? |
Memory safety is a useful concept, but it’s not a panacea and it’s not binary. If the end goal was safety JS would have been fine. Safe rust is guaranteed memory safe which is a huge improvement for system programming but not necessarily the end-all-be-all. There are always tradeoffs depending on the application. I personally think having safety be easily achievable is more important than guaranteed. The problems we’ve had with C and C++ is that it’s been hard to achieve safety.