←back to thread

35 points atomlib | 2 comments | | HN request time: 0.407s | source
Show context
up2isomorphism ◴[] No.41916250[source]
What is the benefit of changing

int main(void) {

to:

pub fn main() !void {

Except making it looks like a "new" language and requires other people spends 15min to get to used to it?

replies(5): >>41916321 #>>41916432 #>>41916718 #>>41916842 #>>41917078 #
1. d_tr ◴[] No.41916842[source]
Probably not much, but this is not the only change the language brings.
replies(1): >>41918175 #
2. ksp-atlas ◴[] No.41918175[source]
As someone who wrote C for my hobby projects, I've switched to Zig and enjoy it more as it feels I can express my intention more clearly