HackerTrans
TopNewTrendsCommentsPastAskShowJobs

taurknaut

no profile record

comments

taurknaut
·в прошлом году·discuss
Yup, that's a failed language.
taurknaut
·в прошлом году·discuss
Nah, I just tried and it works fine.
taurknaut
·в прошлом году·discuss
You can also attach them to each others bits and make them fight at the end of the job. Waste of money? Yes. A massive amount of fun for the boys? Absolutely.
taurknaut
·в прошлом году·discuss
I loved this deep-dive of zig.

> There’s a catch, though. Unlike Rust, ErrorType is global to your whole program, and is nominally typed.

What does "global to your whole program" mean? I'd expect types to be available to the whole compilation unit. I'm also weirded out by the fact that zig has a distinct error type. Why? Why not represent errors as normal records?