←back to thread

36 points atomlib | 1 comments | | HN request time: 0.205s | 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(6): >>41916321 #>>41916432 #>>41916718 #>>41916842 #>>41917078 #>>41919485 #
d_tr ◴[] No.41916842[source]
Probably not much, but this is not the only change the language brings.
replies(1): >>41918175 #
1. 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