You must log in or register to comment.
pub fn main() void { const stdout = std.io.getStdOut().writer(); stdout.print("Hello, World!\n", .{}) catch unreachable; }That’s it. No macros. No build.rs. No Cargo screaming about outdated crates.
I’m not far enough in to say anything on memory safety, but in nim-lang it’s just:
echo("Hello World!")(or even just
echo "Hello World!")I don’t know if anything else compares on simplicity unless maybe script languages with JIT are actually effective (Python no-gil etc), but even then I think I’d probably miss the flexibility that UFCS offers (maybe the standard library as well, at least I assume they wouldn’t be as powerful).
So, after all these years and all those debates about memory safety, they reinvented … C?


