General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Cees Timmerman
Fireship
comments
Comments by "Cees Timmerman" (@CTimmerman) on "Zig in 100 Seconds" video.
So if a function like print returns an error, try will return the current function with that error. Why not make that the default as continuing with errors tends to be bad?
1
@gagagero Except ignoring errors, apparently.
1
@gagagero That's default implicit behaviour reminiscent of PHP where one can spend hours hunting a single character typo because it just keeps going.
1
@gagagero Then what does try add?
1
@gagagero Yes, so what will happen if you don't use try?
1
@gagagero I didn't know Zig's compiler solved the halting problem, or does Zig use mathematical proof of absence of runtime errors like Ada Spark?
1