3 ms·
Well I am impressed. And I am very glad to see more and more languages in this space. I particularly like that Zig seems to be minimalistic -- a lot more fun
by adrianratnapala 10y ago
Well I am impressed. And I am very glad to see more and more languages in this space. I particularly like that Zig seems to be minimalistic -- a lot more fun to look at (for me) than C++ or Rust.
But I didn't see anything in Zig similar to Rust's lifetimes. Well it's nice to be rid of that complexity, but I don't see how you are going to do C-like pointer stuff safely without them.
Can anyone explain what these languages (e.g. Zig, Myrddin, Nim) do instead?
- steveklabnik 10y agoNim has a GC. Myrddin doesn't, but I can't quite remember what it does for safety, if anything. The language spec does say "pointer arithmetic is not allowed." For Zig, see here: https://news.ycombinator.com/item?id=12380078 https://news.ycombinator.com/item?id=12380078