←back to thread

35 points atomlib | 1 comments | | HN request time: 0.203s | 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. c2xlZXB5Cg1 ◴[] No.41917078[source]
I'd go with for loop syntax:

    for (string, 0..) |character, index| {
        _ = character;
        _ = index;
    }